[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Display RSS by category (Muenchian Method)
It seems the error is: the stylesheet does not end with, </xsl:stylesheet> On 11/23/07, Brent Wilcox <cwilly00@xxxxxxxxx> wrote: > The stylesheet does not contain a document element. > > Here is my XSL (using Jeni's Muenchian Method > example): > > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns:common="http://exslt.org/common" > version="1.0"> > > <xsl:output method="html" /> > > <xsl:key name="items-by-category" match="item" > use="category" /> > <xsl:template match="channel"> > <xsl:for-each select="item[count(. | > key('items-by-category', category)[1]) = 1]"> > <xsl:sort select="category" /> > <xsl:value-of select="category" />,<br /> > <xsl:for-each select="key('items-by-category', > category)"> > <xsl:sort select="title" /> > <xsl:value-of select="title" /> (<xsl:value-of > select="title" />)<br /> > </xsl:for-each> > </xsl:for-each> > </xsl:template> -- Regards, Mukul Gandhi
|
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
|