show your mydoc1.xsl, or try to add this line to the top of your xml file<?xml-stylesheet type="text/xsl" href="mydoc1.xsl" ?>and then try to open the xml file in your browser
解决方案 »
- (分享)查询数据库,作为数据源的几种方法
- 计算价钱的问题!
- 【JavaScript】熟悉的兄弟们,进来指点一下。。。。。。。。。。。。。。。。。
- 求教各位大侠,关于c#调用Delphi的webService出现乱码的问题,顶者有分,急!!!
- 如何对工作地点做查询的问题,如果字段值为 “0201,0501,0601”对应地区“吉林市,中山市,无锡市”当用户查询吉林省0200,或广东省0500时
- 准备到上海做ORACLE PL/SQL 开发ERP企业门户,月薪4000,做吗??
- 不注册,如何在aspx页面中调用dll里的方法?
- 请问各位大侠:onclick="__dopostback('control','')"是否是自动产生的
- 在datagrid中,连接碰到的问题
- 三年级的暑假作业:9盆花,横竖排列之后,总共能看到10排,且每排3课。
- 如何用自定义的风格页?
- 初学问题再发贴:用户控件的调用问题,请高手再指点一下(已经第十天了)
我不明白为什么会这样
<?xml version="1.0" standalone="no"?>
<!--This is a sample XML document used for testing page-loading-->
<instance>
<instanceid>41_1</instanceid>
<clsid>41</clsid>
<clsname>试飞阶段故障案例</clsname>
<attributes>
<attribvalue attribtype="其它">
<attribname>编号</attribname>
<attribunit />
<description>2004062401</description>
</attribvalue>
</instance>mydoc1.xsl如下:
<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>基于KM、面向产品创新的可重构设计仓库平台</title>
</head>
<body>
<xsl:value-of select="clsname"/>
<xsl:apply-templates/>
</body>
</html>
</xsl:template><xsl:template match="attributes">
<table>
<xsl:apply-templates/>
</table>
</xsl:template><xsl:template match="attribvalue[@attribtype='其它']">
<tr><td valign='top' ><xsl:value-of select="attribname"/></td>
<td valign='top' style='width:500px;word-break:break-all;'><xsl:value-of select="description"/></td>
</tr>
</xsl:template>
</stylesheet>