xsl模板未向主样式表提供正确的输出

时间:2012-08-09 15:35:26

标签: xslt

allTemplate.xsl

<xsl:template match="myRadio">
    <xsl:variable name="radioName"/>
    <input type="radio" value = "F" name="{radioName}"/>
</xsl:template>

main.xsl

<myRadio>
       <xsl:variable name="radioName" select="Fields/Radio/*" />        
</myRadio>

在生成的jsp页面中,这会创建<input type="radio" etc/>,其中radioName指向Fields/Radio/*main.xsl的数据吗?

Error:
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: at xsl:variable on line 34 of file:/C:/allTemplates.xsl:
  SXWN9001: A variable with no following sibling instructions has no effect
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Error on line 990 of file:/C:/fields.xsl (another random file):
  FORG0001: Failure converting untyped value "" to a number

0 个答案:

没有答案
相关问题