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

Re: Sort by Parameters-Child Nodes

Subject: Re: Sort by Parameters-Child Nodes
From: Bret <laker_66@xxxxxxxxx>
Date: Thu, 29 Apr 2004 08:07:02 -0700 (PDT)
javascript sort child nodes
Thanks David !!!!  for the detailed explanation .
Thats what i was looking for .
--- David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> > not PERSON/FNAME or PERSON/LNAME 
> > when i pass them as parameters . 
> 
> passing in a param (or using a variable generally)
> is just like using a
> string in that position.
> 
> You have
> 
> <xsl:sort select="*[name()=$pa]"
> 
> <xsl:sort select="*[name()='DATE']"
> 
> works because * selects all child elements, and teh
> [] filters out the
> date.
> 
> 
> <xsl:sort select="*[name()='PERSON/FNAME']"
> 
> doesn't work as there is no child element with that
> name, what you want
> is
> 
> 
> <xsl:sort select="*/*[name()='FNAME']"
> 
> ie select a grandchild with name 'FNAME'
> 
> 
> so
> 
> 
> <xsl:sort select="(*|*/*)[name()=$pa]" 
> order="{$pas}"/>
> 
> should work if you pass in pa='FNAME' or pa='DATE'
> as it selects either
> children or grandchildren with the specified name.
> 
> David
> 
>
________________________________________________________________________
> This e-mail has been scanned for all viruses by Star
> Internet. The
> service is powered by MessageLabs. For more
> information on a proactive
> anti-virus service working around the clock, around
> the globe, visit:
> http://www.star.net.uk
>
________________________________________________________________________
> 



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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.