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

How to verify equivalence of two node trees ?

Subject: How to verify equivalence of two node trees ?
From: "Matt Adams" <mattad@xxxxxxxxx>
Date: Thu, 28 Oct 2004 06:36:23 +0100
matt adams
Assume we have two node trees with the root nodes $aroot and $broot:

<xsl:variable name="aroot" select="...." />
<xsl:variable name="broot" select="...." />

How can I test the equivalence of the two node trees ?
More precisely there are should be three kinds of tests:

1.) Testing if tree a is equal to tree b only looking at the elements
but ignoring possible existing attributes and their values

2.) Testing if tree a is equal to tree b regarding the elements and their
attributes but ignoring the values of the attributes

3.) Finally testing if tree a is equal to tree b regarding elements,
their attribute (names) and the attribbute values.

How can I implement such a test in XSLT?
Is there possibly a smarter solution in XSLT 2.0 ?

Matt
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

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.