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

Re: can't get xsl:sort to work

Subject: Re: can't get xsl:sort to work
From: UlyLee <ulyleeka@xxxxxxxxx>
Date: Mon, 19 Sep 2005 04:29:54 -0700 (PDT)
Re:  can't get xsl:sort to work
Thanks guys! this mailing list is really great for
newibes like me... again thanks a lot! (i never
thought the solution would be that simple... hehehe!)

UlyLee

--- Joris Gillis <roac@xxxxxxxxxx> wrote:

> Tempore 12:58:08, die 09/19/2005 AD, hinc in
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit UlyLee
> <ulyleeka@xxxxxxxxx>:
> 
> > <xsl:for-each select="//complexarticle |
> > //simplearticle | //dummyarticle">
> > <xsl:sort select="@entry">
> > <tr valign="top">
> > <td><xsl:value-of select="@id"/></td>
> > <td><xsl:value-of select="@entry"/></td>
> > <td><xsl:variable name="x"
> select="count(.//xref)"/>
> > <xsl:for-each select=".//xref">
> > <xsl:value-of select="."/>
> > <xsl:if test="position() &lt; $x">
> > <br/>
> > </xsl:if>
> > </xsl:for-each>
> > </td>
> > </tr>
> > </xsl:sort>
> > </xsl:for-each>
> >
> > but when i run the transformation (i'm using
> > xmlspy) i get and error "Expected select attribute
> or
> > non empty content not both" but i have a select
> > attribute.
> 
> The error message says it all.
> You need:
> <xsl:sort select="@entry"/>
> you don't have to encapsulate the whole loop with
> this element;-)
> 
> regards,
> -- 
> Joris Gillis
> (http://users.telenet.be/root-jg/me.html)
> Gaudiam omnibus traderat W3C, nec vana fides
> 
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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.