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

Re: How to reorder tree by member

Subject: Re: How to reorder tree by member
From: Shekhar Kshirsagar <skshirsa@xxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Mar 1999 13:28:08 -0500
xsl reorder xml tree
Hi,

I think similar problems have been raised before which attribute to the
shortcoming of the XSL spec where EqualityExpr cannot accept a select
pattern but just a Literal.

For now, you have to explicitly list the GROUP name. 
Alternative approach can be to write another XSL to generate your required
XSL.

There is a example at following site (from James Tauber) to achieve this:

http://www.xmlsoftware.com/articles/xsl-by-example.html

Thanks & Regards,
Shekhar Kshirsagar
Nortel Networks

DISCLAIMER:    
The views expressed here are my own and may not reflect those of Nortel
Networks.




At 08:21 AM 3/11/99 -0800, Andy Wilcock wrote:
>Hi,
>I'm a little new to some of the finer intricacies of XSL, and am trying to
>take in the following XML information, and output it in a list, ordered by
>GROUP, but so that the
>GROUP name is mentioned once.
>
>I had thought it would be a simple case of either uniquely sorting the group
>text, or  using first-of-type() in some way, but I just can't seem to get
>the voodoo right, or find a good example [BTW, I'm using the LotusXSL parser
>if that helps]. I guess I may be easier to do it as an IDREF for the groups,
>but I'm really after a solution that works with the information like this,
>if one is possible.
>
>Thanks,
>
>Andy.
>
>
>Input:
>	<EMPLOYEE>
>		<USER>
>			<NAME>John Doe</NAME>
>			<GROUP>Development</GROUP>
>		</USER>
>		<USER>
>			<NAME>Steve Smith</NAME>
>			<GROUP>Development</GROUP>
>		</USER>
>		<USER>
>			<NAME>Jane Smith</NAME>
>			<GROUP>Marketing</GROUP>
>		</USER>
>		<USER>
>			<NAME>A. N. Other</NAME>
>			<GROUP>Marketing</GROUP>
>		</USER>
>	<EMPLOYEE>
>
>Output:
>	Development
>		John Doe
>		Steve Smith
>	Marketing
>		Jane Smith
>		A. N. Other
>
>--
>Andy Wilcock   Mentor Graphics Cabling Products - ViewWare Engineering
>  andrew_wilcock@xxxxxxxxxxx  Phone: +1(503) 685-7862  Fax: 685-7991
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.