2012-08-03 43 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