W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2007

Check two elements are not deep equal

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Wed, 28 Nov 2007 10:57:26 +0000
Message-ID: <74a894af0711280257l29202fb8y6dadc539df73826@mail.gmail.com>
To: xmlschema-dev@w3.org

Is it possible in XML Schema 1.0 to ensure two elements are not deep
equal - the equivalent of this XPath:

//update[not(deep-equal(old/*, new/*))]

for this structure:

    <data1>some value</data1>
    <data2>some other value</data2>
    <data1>some value</data1>
    <data2>some other value</data2>

The <update> element should contain an <old> and a <new> with at least
one value different in the <new>... so in the example the test should
fail as the contents of both are the same.

Received on Wednesday, 28 November 2007 10:57:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:13 UTC