Re: [xsl] Display RSS by category (Muenchian Method)

Subject: Re: [xsl] Display RSS by category (Muenchian Method)
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sat, 24 Nov 2007 13:47:23 +0530
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

Current Thread