Subject: [xsl] How to verify equivalence of two node trees ? From: "Matt Adams" <mattad@xxxxxxxxx> Date: Thu, 28 Oct 2004 06:36:23 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Wah? Weird... Clarifying , M. David Peterson | Thread | RE: [xsl] How to verify equivalence, Michael Kay |
Re: [xsl] Wah? Weird... Clarifying , M. David Peterson | Date | [xsl] Prior Instance of term in mai, David Riggs |
Month |