aspose file tools*
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
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
     
    jQuery in Action, 2nd edition
     
    subject: dynamic attribute definition in xsd