• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic attribute definition in xsd

 
Anoop Krishnan
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic