xsl-list
[Top] [All Lists]

Re: [xsl] Friday challenge: XSLT thats creates XPaths for meaningfully equivalent comparisons of XML files

2007-04-13 11:03:01
I attempted something similar (1-2 yrs back I guess).

You can read about my idea at,
http://gandhimukul.tripod.com/xslt/misc.html (item 3).

On 4/13/07, Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr> wrote:
Andrew Welch wrote:

 Hi

> <checkXML>
>    <xml src="file:/C:/test.xml">
>       <check>/root[1]/foo[1]/text[1] = 'foo'</check>
>       <check>/root[1]/foo[1]/@fooatt = 'att'</check>
>       <check>/root[1]/bar[1]/text[1] = 'bar'</check>
>       <check>/root[1]/bar[2]/text[1] = 'baz'</check>
>    </xml>
> </checkXML>

 IMHO, the first step is to define what 'to be meaningfully
equivalent' means for two XML documents.  Do the whitespace text nodes
count?  Do all attributes count (think for example about generated
IDs)?  Do the order of the elements always count?

 IMHO all those questions cannot be answered without the context of a
specific document type.

 Regards,

--drkm


--
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>