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

RE: nodes having same values in same order

Subject: RE: nodes having same values in same order
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 11 Apr 2003 12:27:19 +0100
xslt same values
The first time you asked this you said "no extensions". The fact that
you got no answers probably means that this is very hard to do without
extensions.

The problem is actually underspecified. What do you mean for two
elements to be "the same". Just the same name? Or the same value as
well?

Here's an XPath 2.0 solution:

select="//yyy[some $x in //xxx satisfies deep-equal(., $x)]"

I'm afraid I'm too busy writing XSLT 2.0 specs right now to spend time
finding a 1.0 solution for you!

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Leena Kulkarni
> Sent: 10 April 2003 14:45
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  nodes having same values in same order
> 
> 
> Hello,
> 
> If I have a structure like the following -
> 
> <xxx>
>   <pp></pp>
>   <qq></qq>
>   <rr></rr>
> </xxx>
> <xxx>
>   <pp></pp>
>   <qq></qq>
> </xxx>
> 
> <yyy>
>   <pp></pp>
>   <qq></qq>
> </yyy>
> <yyy>
>   <pp></pp>
>   <qq></qq>
>   <rr></rr>
> </yyy>
> 
> How do I find out the yyy elements that have exactly
> the same elements(same order and count) as in xxx?
> 
> Thanks
> 
> 
> ______________________________________________________________
> __________
> Missed your favourite TV serial last night? Try the new, Yahoo! TV.
>        visit http://in.tv.yahoo.com
> 
>  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.