Conditonal XSD validation based on elements values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nassim.bouayad.agha@gmail.com

    Conditonal XSD validation based on elements values

    Hello,
    I am seeking for information about conditional XSD validation based on
    elements values,but unfortunatly,I could not find a clear answer.Let's
    say that I have three XML elements named GROUP,SUB_GROUP and VALUE.How
    to validate the VALUE element depending on GROUP and SUB_GROUP values?
    Like if GROUP equals 3 and SUB_GROUP equals 4 then VALUE must be a
    string enumeration...
    Is it possible to perform that with XSD?I have seen some example using
    schemapath (XPath conditions),but that does not seem to be
    normalized...?!
    Thank you in advance.
    Regards.
    Nassim
  • Joseph J. Kesselman

    #2
    Re: Conditonal XSD validation based on elements values

    nassim.bouayad. agha@gmail.com wrote:
    I am seeking for information about conditional XSD validation based on
    elements values
    Not supported in XML Schema at this time. Use the xsi:type attribute to
    explicitly indicate which type the element is supposed to be interpreted as.

    Comment

    • nassim.bouayad.agha@gmail.com

      #3
      Re: Conditonal XSD validation based on elements values

      On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast. net>
      wrote:
      nassim.bouayad. a...@gmail.com wrote:
      I am seeking for information about conditional XSD validation based on
      elements values
      >
      Not supported in XML Schema at this time. Use the xsi:type attribute to
      explicitly indicate which type the element is supposed to be interpreted as.
      Thank you for yout answer.

      Comment

      • nassim.bouayad.agha@gmail.com

        #4
        Re: Conditonal XSD validation based on elements values

        On 4 juin, 00:12, "Joseph J. Kesselman" <keshlam-nos...@comcast. net>
        wrote:
        nassim.bouayad. a...@gmail.com wrote:
        I am seeking for information about conditional XSD validation based on
        elements values
        >
        Not supported in XML Schema at this time. Use the xsi:type attribute to
        explicitly indicate which type the element is supposed to be interpreted as.
        Thank you for your answer.
        Regards.
        Nassim.

        Comment

        Working...