0
我在寻找一些帮助的XSL选择:XSL在那里声明
我需要的是一个选择,将显示一个不同的列表标题在同一行的文档匹配名称字段。如果没有条目,我会显示一个链接来创建一个新链接。这里是我有:
<xsl:choose>
<xsl:when test="/dsQueryResponse
/Change_Types
/Rows
/Row
/@Document = @Name"/>
<xsl:value-of select="/dsQueryResponse
/Change_Types
/Rows
/Row
/@Document[
/dsQueryResponse
/Change_Types
/Rows
/Row
/@Document = @Name
]"/>
</xsl:when>
<xsl:otherwise>
<!-- Code to show link -->
</xsl:otherwise>
</xsl:choose>
如果任何人都可以指出我要去哪里错了,将不胜感激!
请张贴您输入的XML。 – 2011-03-25 18:52:48
该谓词将始终为false,因为从来没有'@ Document'属性具有'@ Name'属性。请发布您的XML文档。 – 2011-03-25 22:00:40