[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: nodes having same values in same order
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|