高手在么??急切想问一个关于xml和xsl的问题!!!

rhj_2001 2002-02-26 05:02:11
我简直要火死了。请高手帮忙!!
xml如下:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="module.xsl"?>
<Keywords>
<Keyword name="userName" origin="dynamic" dynamicSource="Database" script="select userName from Employee where userId='001' " id="3">
<FormProperty tag="input">
<PreTitle titleAttribute="characters">
<Characters>Applicant :</Characters>
</PreTitle>
<Type>text</Type>
<Size>22</Size>
</FormProperty>
<DBProperty>
<Type>varchar</Type>
<Length>50</Length>
<AllowNull>true</AllowNull>
</DBProperty>
</Keyword>
<Keyword name="priority" id="15">
<FormProperty tag="input">
<SufTitle titleAttribute="image">
<Image src="test.gif" width="200" height="50" border="0"/>
</SufTitle>
<Type>text</Type>
<Size>22</Size>
</FormProperty>
<DBProperty>
<Type>varchar</Type>
<Length>50</Length>
<AllowNull>true</AllowNull>
</DBProperty>
</Keyword>
</Keywords>


xsl如下:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="Keywords">
<html>
<body>
<form name="Vacation" method="post" action="action" accept-charset="gb2312">
<table width="80%" border="1" cellspacing="2" cellpadding="2">
<xsl:apply-templates/>
</table>
</form>
</body>
</html>
</xsl:template>

<xsl:template match="Keyword[@name='userName']">
<tr>
<td>
<xsl:value-of select="Keyword/FormProperty/PreTitle/Characters"/>
</td>
<td>
<xsl:element name="input">
<xsl:attribute name="type">text</xsl:attribute>
<xsl:attribute name="name">id</xsl:attribute>
<xsl:attribute name="value"></xsl:attribute>
</xsl:element>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>

为什么用ie浏览器打开该xml,只是空白一片,也不报错!!真要活死了,请高手帮我看看!!
...全文
53 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zeaing 2002-02-27
  • 打赏
  • 举报
回复
升级IE,到6.0
或者到微软网站下在一个xmlinst.exe安装以下
wafer_w 2002-02-26
  • 打赏
  • 举报
回复
下载amaya,一个W3C用于测试XML的浏览器,支持所有新特性!

23,407

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧