This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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 &lt; '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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]