我有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