xsd restriction on dateTime based on other dateTime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joris van Lier

    xsd restriction on dateTime based on other dateTime

    Hi All,
    i'm trying to define an xml schema for validation with a restriction on
    dateTime element based on another dateTime Element.

    in English: end (dateTime) should be greater than or equal to begin
    (dateTime)

    Is it possible to define such restrictions in XSD?

    regards

    Joris van Lier

  • Martin Honnen

    #2
    Re: xsd restriction on dateTime based on other dateTime

    Joris van Lier wrote:
    i'm trying to define an xml schema for validation with a restriction on
    dateTime element based on another dateTime Element.
    >
    in English: end (dateTime) should be greater than or equal to begin
    (dateTime)
    >
    Is it possible to define such restrictions in XSD?
    No. It might be possible with Schematron if that supports XSLT/XPath 2.0.



    --

    Martin Honnen --- MVP XML

    Comment

    • Joris van Lier

      #3
      Re: xsd restriction on dateTime based on other dateTime

      "Martin Honnen" <mahotrash@yaho o.dewrote in message
      news:Owzk$0NvIH A.4876@TK2MSFTN GP02.phx.gbl...
      Joris van Lier wrote:
      >
      >i'm trying to define an xml schema for validation with a restriction on
      >dateTime element based on another dateTime Element.
      >>
      >in English: end (dateTime) should be greater than or equal to begin
      >(dateTime)
      >>
      >Is it possible to define such restrictions in XSD?
      >
      No. It might be possible with Schematron if that supports XSLT/XPath 2.0.

      Thanks Martin, i'll have to rethink my approach, for now i'll validate that
      part in C#.

      Comment

      Working...