Re: [xsl] Testing 2 XML documents for equality - a solution

Subject: Re: [xsl] Testing 2 XML documents for equality - a solution
From: Elliotte Rusty Harold <elharo@xxxxxxxxxxxxxxx>
Date: Wed, 30 Mar 2005 14:13:46 -0500
In general, the notion of "equality" for XML documents is highly application dependent. Even two documents that are byte-per-byte the same are not always equal for all purposes. On the flip side, there are almost always multiple ways to represent the same content such that many (in fact, infinitely many) different documents would be considered to be the same by any given XML aware process. However, different processes have different definitions of "the same." Before you can consider whether or not it's possible to write a stylesheet that tests two documents for equality it's essential to define exactly what you mean by equal.


-- Elliotte Rusty Harold elharo@xxxxxxxxxxxxxxx XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

Current Thread