• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

dynamic attribute definition in xsd

 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic