|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re[2]: xsl:sort Please Help
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:sort Please Help
Author: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
|
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
|

Cart








