This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes dynamic attribute definition in xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "dynamic attribute definition in xsd" Watch "dynamic attribute definition in xsd" New topic
Author

dynamic attribute definition in xsd

Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
I have an Element called Parameter with several attribute (See Code block 1.
The attribute type is enumerated (See Code block 2 : the simpleType definition DataType)
I want to achieve the following constrain.
  • The attributes "value" and "source" should not appear together
  • The attribute "value" is valid only when attribute "type" has a value "StaticEnum"
  • The attribute "source" is valid only when attribute "type" has a value "Fid"


  • How can I define the constrain for every Parameter Element.






    [ November 11, 2008: Message edited by: Anoop Krishnan ]
    [ November 11, 2008: Message edited by: Anoop Krishnan ]

    I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
     
     
    subject: dynamic attribute definition in xsd
     
    Similar Threads
    schema generation
    converting xsd to html
    XML valiadation using schema
    MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute
    unble to validate xml against schema