我有XSL的下面的代码片段:是否有XSL“包含”指令?
<xsl:for-each select="item">
<xsl:variable name="hhref" select="link" />
<xsl:variable name="pdate" select="pubDate" />
<xsl:if test="hhref not contains '1234'">
<li>
<a href="{$hhref}" title="{$pdate}">
<xsl:value-of select="title"/>
</a>
</li>
</xsl:if>
</xsl:for-each>
if语句不工作,因为我一直没能制定出语法包含。我将如何正确表达xsl:if?
在行......的? – 2009-02-20 15:22:44
更正了代码格式。 – Tomalak 2009-02-20 15:27:20