|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem using xsl:if to skip a node in a repeating
On Dec 15, 2005, at 1:43 AM, Ragulf Pickaxe wrote:
Hi Sean, Thanks, Ragulf. I caught that as I was going back through it. But it's still not working. Here's the full xslt fragment: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€"> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/ Transform"> <xsl:output method="html" encoding="ISO-8859-1"/> <xsl:param name="ItemsPerPage" select="4" /> <xsl:template match="/"> <xsl:for-each select="rss/channel/item[position() <= $ItemsPerPage]"> <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> </xsl:for-each> </xsl:template> </xsl:stylesheet> I'm still getting an unspecified error . <xsl
|
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
|

Cart








