[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

Subject: Problem using xsl:if to skip a node in a repeating area
From: Sean Gallagher <sean@xxxxxxxxxx>
Date: Wed, 14 Dec 2005 22:41:02 -0500
xslt skip node
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.