Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


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

From: Carl Eric Codere <cecodere@-----.-->
To: eday@-------.---, ---- ------- <----------@--------------.--->
Date: 2/15/2007 11:49:00 AM
Greetings,
         Yes, I understand, but as i wrote earlier, in any schema language
syntax is it possible to specify the length of an element in reference to the
value of another element? Maybe in XSD 1.1 and Schematron (with obscure
features if i understand correctly), but is it the case in ASN.1 syntax? If
so what is the syntax?

The goal is to be able to represent clearly and cleanly all structured file
formats according to specific schema rules... 

p.s: Thanks for all those that have answered!

Sicnerely
Carl
http://www.optimasc.com



--- eday@o... wrote:

> ASN.1 does support the specification of various binary formats (BER,  
> DER, PER) throug its encoding rules.  There is also a standard (X.694)  
> that provides a mapping between XML schema and ASN.1, so, yes it is  
> possible to specify the use of a binary format in this way.
> 
> The W3C is also working on the Efficient XML Interchange (EXI) format  
> which will be a standardized binary format for XML.
> 
> Regards,
> 
> Ed Day
> Objective Systems, Inc.
> http://www.obj-sys.com
> 
> Quoting Pete Cordell <petexmldev@t...>:
> 
> >
> > 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)
> > =============================================
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

From gerald.sheehan@a... Fri Feb 16 11:28:48 2007
Received: from wiggum.w3.org ([128.30.52.23])
	by frink.w3.org w


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent