Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

xsd restriction on dateTime based on other dateTime

Question posted by: Joris van Lier (Guest) on June 27th, 2008 07:20 PM
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's Avatar
Martin Honnen
Guest
n/a Posts
June 27th, 2008
07:20 PM
#2

Re: xsd restriction on dateTime based on other dateTime
Joris van Lier wrote:
Quote:
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
http://JavaScript.FAQTs.com/

Joris van Lier's Avatar
Joris van Lier
Guest
n/a Posts
June 27th, 2008
07:20 PM
#3

Re: xsd restriction on dateTime based on other dateTime
"Martin Honnen" <mahotrash@yahoo.dewrote in message
news:Owzk$0NvIHA.4876@TK2MSFTNGP02.phx.gbl...
Quote:
Joris van Lier wrote:
>
Quote:
>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#.


 
Not the answer you were looking for? Post your question . . .
189,759 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors