[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Problem using xsl:if to skip a node in a repeating are
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|