I'm trying to use XSL to render an RSS feed in such a way as to skip
items whose titles start with the text "ADV". But, admittedly, I'm an
XPath noob, and the code is not working.
I'm using the following, within <xsl:template>:
<xsl:variable name='adstring' select='ADV' />
<xsl:variable name='checkti' select='{title}' />
<xsl:if test="not(starts-with($checkti,$adstring))">
<li><a href='{link}'><xsl:value-of select="title"/></a></li>
</xsl:if>
I get an error that says the xsl is not a valid xslt doc, with an
"InnerException" (I'm using the .NET XSLT component and C# to do the
transformation).
Help?
Sean Gallagher
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--