Hi,
You can define a sequence in the schema and specify the name and value
inside that sequence, then set the occurances on the sequence to handle
more versions, like below for instance:
<xs:element name="versions">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="version"/>
<xs:element name="value"/>
</xs:sequence>
</xs:complexType>
</xs:element>
Getting the value for a version element should be easy, in XSLT for
instance if you match on a version element the the value is given by
the following XPath expression (assuming the document is valid against
the schema)
following-sibling::*[1]
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com