[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Display RSS by category (Muenchian Method)

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

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.