2

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
4

0 回答 0