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)
< 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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
- Schematron michael_hampel
- Re: Schematron Alexander Smirnoff
- Re: Schematron Ivelin Ivanov
- schematron jtbamcai
- Re: schematron Joerg Heinicke
- Re: schematron Ivelin Ivanov
- DataBase Action and date format Marco Taiuti