[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How to verify equivalence of two node trees ?
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
|
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
|