XML文件,预期会有空格或 '?'。处理资源"***"时出错。第 1 行,位置: 20 <?xml version="1.0">,什么意思
Example.xsl<?xmlversion="1.0"><!--DWXMLSource="Example.xml"--><xsl:stylesheetversion=...
Example.xsl
<?xml version="1.0">
<!-- DWXMLSource="Example.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<H2>imformation</H2>
<SPAN STYLE="font-style:italic">NAME:</SPAN>
<xsl:value-of select="IMFORMATION/NAME"><BR />
<SPAN STYLE="font-style:italic">SEX:</SPAN>
<xsl:value-of select="IMFORMATION/SEX"><BR />
<SPAN STYLE="font-style:italic">TELEPHONE:</SPAN>
<xsl:value-of select="IMFORMATION/TELEPHONE"><BR />
<SPAN STYLE="font-style:italic">COMPANY:</SPAN>
<xsl:value-of select="IMFORMATION/COMPANY"><BR />
<SPAN STYLE="font-style:italic">E-MAIL:</SPAN>
<xsl:value-of select="IMFORMATION/E-MAIL"><BR/>
<SPAN STYLE="font-style:italic">ADDRESS:</SPAN>
<xsl:value-of select="IMFORMATION/COMPANY"><P />
</xsl:template>
</xsl:stylesheet> 展开
<?xml version="1.0">
<!-- DWXMLSource="Example.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<H2>imformation</H2>
<SPAN STYLE="font-style:italic">NAME:</SPAN>
<xsl:value-of select="IMFORMATION/NAME"><BR />
<SPAN STYLE="font-style:italic">SEX:</SPAN>
<xsl:value-of select="IMFORMATION/SEX"><BR />
<SPAN STYLE="font-style:italic">TELEPHONE:</SPAN>
<xsl:value-of select="IMFORMATION/TELEPHONE"><BR />
<SPAN STYLE="font-style:italic">COMPANY:</SPAN>
<xsl:value-of select="IMFORMATION/COMPANY"><BR />
<SPAN STYLE="font-style:italic">E-MAIL:</SPAN>
<xsl:value-of select="IMFORMATION/E-MAIL"><BR/>
<SPAN STYLE="font-style:italic">ADDRESS:</SPAN>
<xsl:value-of select="IMFORMATION/COMPANY"><P />
</xsl:template>
</xsl:stylesheet> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询