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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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) > < 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]> > --------------------------------------------------------------------- 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]>