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

Re: xsl:sort with document()

Subject: Re: xsl:sort with document()
From: Jan Limpens <jan.limpens@xxxxxxxxx>
Date: Thu, 2 Dec 2004 21:46:02 -0200
document xsl
thanks geert,

this really did work! i was reluctant on experimenting with a 2nd
document call just out of this reason, but so far the performance
backlash it does not really show.

greetings
jan


On Fri, 03 Dec 2004 00:08:37 +0100, Geert Josten
<geert.josten@xxxxxxxxxxx> wrote:
> Hi Jan,
> 
> Haven't worked through your code completely, but at least the following caught my eye:
> 
>  >                                      <xsl:apply-templates select="site:children/site:document">
>  >                                              <xsl:sort select="navi:order"/><!--does not work-->
>  >                                      </xsl:apply-templates>
> 
> This suggests that navi:order is a subelement of site:document, which I believe is not the case...
> 
> Changing the sort to:
> 
>         <xsl:sort select="document(site:xml-file)/*/navi:order"/>
> 
> is more likely to work...
> 
> But I think you'd better try to get the document function call into the select statement of the
> apply-templates or a for-each if necessary. I have a hunch that it is a performance killer this way.
> 
> But then again, only one way to found out...
> 
> G.
> 
> 


-- 
Jan
http://www.limpens.com

Otakoo Saloon Cartoon - newest episode at http://limpens.com/oscredirect

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.