xsl-list
[Top] [All Lists]

RE: Testing 2 XML documents for equality - a solution

2005-04-04 05:57:47
This is a nice feature provided by Saxon (infact very
nice). And is much more optimized than the named
template I wrote (in the stylesheet I posted last), as
Saxon's function runs in native Java code.. 

My named template has limitation that it can calculate
XPath string for element nodes only. But Saxon's
path() function can calculate XPath string for "all
types of nodes"..

I would explore it to use in my stylesheet.

Regards,
Mukul

--- Andrew Welch <ajwelch(_at_)piper-group(_dot_)com> wrote:


A different way of comparing two XML documents
springs to mind: iterate
over docA getting each element's and attribute's
saxon:path(), and
compare the value by using saxon:evaluate($path) on
docB.  The could
check that docB is at least a superset of docA,
possibly what Mukul is
after?


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




                
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--