2012-08-03 44 views
-2

我不断收到XSLT错误为:嵌套XSL元素:嵌套的xsl:如果在XSL:模板名称=“XXXX”

<xsl:template name="PermissionsHeader"> 
    <xsl:if test="true"> 
    </xsl:if> 
</xsl:template> 

是否有某种优先级的,其中的xsl:如果不能嵌套在XSL:模板?所有我想要的是在XSL一些条件:模板...感谢

错误消息:

Error on line 1 column 1 
    SXXP0003: Error reported by XML parser: Premature end of file. 
+0

你得到了什么错误? – 2012-08-03 20:13:20

+0

XSLT错误...这不是非常描述性的:\我也有另一个问题:http://stackoverflow.com/questions/11802667/passing-a-param-from-xsltemplate-and-using-it – bouncingHippo 2012-08-03 20:15:07

回答

1
<xsl:if test="true"> 
</xsl:if> 

看到here

+0

请upvote .. .soneone downvoted我不必要的:\我也有另一个问题:http://stackoverflow.com/questions/11802667/passing-a-param-from-xsltemplate-and-using-it – bouncingHippo 2012-08-03 20:16:54