This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: RE: Infinte nesting with sorting
- From: Oscar Rueda <orp at intras dot es>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 11 Jan 2002 13:27:36 +0100
- Subject: Re: RE: [xsl] Infinte nesting with sorting
- Organization: IDES
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks for the reply, but I can't upgrade because I do transformations on server-side
In case somenone is interested, I've been able to do it with this XSL:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:apply-templates select="//Issue" order-by="+@id"/>
</xsl:template>
<xsl:template match="Issue"><p>
<xsl:value-of select="@id" />
<xsl:apply-templates /></p>
</xsl:template>
<xsl:template match="Chapter">
<BLOCKQUOTE>
<xsl:value-of select="@id" />
<xsl:apply-templates select="Chapter" order-by="+@id" />
</BLOCKQUOTE>
</xsl:template>
</xsl:stylesheet>
This transforms properly the XML
Oscar Rueda
11/01/02 13:16:12, "Michael Kay" <michael.h.kay@ntlworld.com> escribió:
>> But sorting the chapters looks painful, does anyone have a clue?
>>
>> By the way, I'm using IE5, so I can't use <xsl:stylesheet
>> version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>
>Everything is painful when using WD-xsl, and you're unlikely to get any
>advice from this list other than to upgrade to XSLT as soon as you possibly
>can: the longer you leave it, the more difficult adn expensive it will be.
>
>Your statement that you can't use XSLT because you're using IE5 is quite
>incorrect: all you need to do is download and install MSXML3.
>
>Mike Kay
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list