www.webdeveloper.com
Results 1 to 2 of 2

Thread: XSD: interdependent tag attribute lists

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    9

    Question XSD: interdependent tag attribute lists

    Say, I have an XML document of the following structure:
    HTML Code:
    <root>
        <person gender="male" interests="cars"/>
        <person gender="female" interests="shoe-shopping"/>
    </root>
    Say, available options list is as follows:
    gender="male|female", interests="cars|women|shoe-shopping|men"

    With the following correspondence between attribute values:
    male -> cars, women
    female -> shoe-shopping, men

    Question:
    Is there any way to set the aforementioned attribute option's interdependence in the context of XSD schema? Which means, if composing an XML document I have selected a 'male' value for the 'gender' attribute - the 'interests' attribute available values are reduced to the ones, corresponding to the 'male' value according to the initial idea...
    ---
    Thanks in advance!

  2. #2
    Join Date
    Jan 2011
    Posts
    9
    No one able to help?
    [UP!]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles