This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: xsl:sort Please Help
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re[2]: [xsl] xsl:sort Please Help
- From: Steven dot C dot Kienle at am dot pnu dot com
- Date: Fri, 29 Jun 2001 07:37:36 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
Just to clarify: the correct sorting syntax in XSLT would be:
<current_projects>
<xsl:for-each select="project[project_title < 'Z']">
<xsl:sort select="project_title" />
<project>
<project_title>
<xsl:value-of select="project_title"/>
</project_title>
.
.
.
______________________________ Reply Separator _________________________________
Subject: RE: [xsl] xsl:sort Please Help
Author: xsl-list@lists.mulberrytech.com at Internet-America
Date: 29-06-2001 10:24 AM
> No, I'm not using WD-xsl. I'm still a little confused
> though. Thank you
> for your help and your time. I am pretty new at this.
>
> The following works fine in my application.
> <current_projects>
> <xsl:for-each order-by="+project_title" select="
> project[project_title$lt$'Z']"
> xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> <project>
> <project_title>
> <xsl:value-of select="project_title"/>
> </project_title>
.
>
> So I would think the similar format of this would work.
>
You are indeed confused. Your order-by attribute is WD-xsl syntax, your
select attribute with its $lt$ operator is WD-xsl syntax, your namespace is
WD-xsl, so what do you mean, you aren't using WD-xsl?
Get yourself an XSLT reference and try very hard to forget anything you ever
learnt about WD-xsl; certainly get rid of the expectation that something
that works in one language ought to work in the other. They are quite
different.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list