Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Are two schemas different content models? [Thread Next] References to a value of an element in another element?To: xmlschema-dev@--.--- Date: 1/23/2007 7:05:00 AM
Greetings,
I have a simple question, but i am not sure it is possible to
represent it in XMLSchema, if so any help would be really appreciated.
I have variable-length structure and the length of the 2nd element depends on
the value of the first element. How is it possible to specify this in
XMLSchema?
<xsd:complexType name="Chunk">
<xsd:sequence>
<xsd:element name="size" type="xsd:integer"/>
<xsd:element name="data" type="xsd:hexBinary" ?????/>
</xsd:sequence>
</xsd:complexType>
The problem is with element "data", how do i specify that its length is the
value "size"???
Thank you very much,
Carl Eric Codère
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
From petexmldev@t... Tue Jan 23 19:05:02 2007
Received: | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
