Attributes in XSD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Mcleod

    Attributes in XSD

    Is there a way to make one attribute dependent on another in an XSD?
    Like, optional attribute "B" can only be included if optional attribute
    "A" is also included? Thanks.
  • Martin Honnen

    #2
    Re: Attributes in XSD

    Jon Mcleod wrote:
    Is there a way to make one attribute dependent on another in an XSD?
    Like, optional attribute "B" can only be included if optional attribute
    "A" is also included?
    No, you cannot do that, at least not with the current version 1.0 of the
    W3C XML schema language.
    You could do it with Relax NG.


    --

    Martin Honnen

    Comment

    • Mukul Gandhi

      #3
      Re: Attributes in XSD

      On Oct 30, 6:02 pm, Jon Mcleod <jonmcleod2...@ yahoo.comwrote:
      Is there a way to make one attribute dependent on another in an XSD?
      Like, optional attribute "B" can only be included if optional attribute
      "A" is also included?  Thanks.
      This could be possible with XSD 1.1 assertions. But XSD 1.1 is still
      under development.

      cheers,
      Mukul

      Comment

      Working...