[Home] [By Thread] [By Date] [Recent Entries]

  • To: "Prasad G S K" <prasadg@a...>,"xml-dev" <xml-dev@l...>
  • Subject: RE: XSD grammar for reference
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Sun, 13 Apr 2003 01:32:46 -0700
  • Thread-index: AcMBjH/8xZ3vgZl3TEiUc8iPLg6ITgACgXH4
  • Thread-topic: XSD grammar for reference

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@a...]
Sent: Sun 4/13/2003 12:07 AM
To: xml-dev
Subject:  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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member