[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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
Check two elements are not deep equal

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:

<update>
  <old>
    <data1>some value</data1>
    <data2>some other value</data2>
  </old>
  <new>
    <data1>some value</data1>
    <data2>some other value</data2>
  </new>
</update>

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.


thanks
andrew
Received on Wednesday, 28 November 2007 10:57:32 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.