cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: schematron
Date Wed, 18 Dec 2002 04:02:19 GMT

Joerg's response is correct, although a technical detail is that Schematron
is based on XPath, not XSTL (which uses XPath itself).


----- Original Message -----
From: "Joerg Heinicke" <joerg.heinicke@gmx.de>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, December 17, 2002 1:27 PM
Subject: Re: schematron


> jtbamcai wrote:
>  > Hi!
>  > how can I validate a date like this "yyyy-mm-dd" with schematron?
>  > thanks in advance.
>  > iker.
>
> Hello,
>
> Schematron is XSLT, so you can use normal expressions.
>
> Example:
>
> <assert test="substring(date, 1, 4) > 2000 and substring(date, 1, 4)
> &lt; 2005">
> </assert>
>
> But XSLT has no date-specific functionality, it knows nothing about
> dates. So I think there is a better validator than schematron for dates.
>
> Regards,
>
> Joerg
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message