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

Re: References to a value of an element in another element?

From: Pete Cordell <petexmldev@tech-know-ware.com>
Date: Fri, 26 Jan 2007 10:01:50 -0000
Message-ID: <006f01c74131$02795ee0$fc00a8c0@Codalogic>
To: <ccodere@ieee.org>, <xmlschema-dev@w3.org>
Re: References to a value of an element in another element?

Original Message From: "Carl Eric Codere"

> Greetings,
>          What is the section in XML Schema 1.1 draft that explains this
> feature? If this feature is not currently possible in XML Schema, what 
> would
> syntax would you suggest?
>
> My goal here is to be able to describe binary file formats using XML 
> Schema,
> or any other scheman language (such as ASN.1, does ASN.1 this then?)...
>
> Any help would be appreciated...
> Carl

The section in the version of XSD 1.1 that I have that discusses this is 
"3.12 - Assertions".  It probably won't help you much though as this is work 
in progress and I doubt any tools support it.

You can find more about Schematron at: http://www.schematron.com/.  Although 
you can write XSD schemas that contain Schematron constraints I'm not sure 
how many mainstream parsing tools support this.

I have only limited experience of ASN.1.  To my knowledge ASN.1 does not 
support this type of constraint, but I could easily be wrong.

It may just be easier to make this an application level check!

HTH,

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================
Received on Friday, 26 January 2007 10:02:07 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.