[
Lists Home |
Date Index |
Thread Index
]
This can be modelled using either ID/IDREF[0] or key/keyref[1]
[0] http://www.w3.org/TR/xmlschema-2/#IDREF
[1] http://www.w3.org/TR/xmlschema-0/#specifying%20Keys&theirRefs
________________________________
From: Prasad G S K [mailto:prasadg@aztec.soft.net]
Sent: Sun 4/13/2003 12:07 AM
To: xml-dev
Subject: [xml-dev] XSD grammar for reference
XML instance will be as follows:
<group refTo="MyGroup"/>
...
...
<group name="MyGroup">
<...>
<...>
</group>
Here "refTo" attribute should refer to the "name" attribute of another group. Can I specify the grammar for this in XSD?
regards,
GSK
|