Altova Mailing List Archives

AW: [xsl] dates in schema

From: "Szabo, Patrick \(LNG-VIE\)" <patrick.szabo@----------.-->
To: <xsl-list@-----.------------.--->
Date: 9/5/2011 9:38:00 AM
We have a xml-schema validation running here and i think in xml-schema current-date() is not avaiable is it ?!

. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
 XSLT Developer 
Marxergasse 25, 1030 Wien

Tel.: 00431 534521573 
Fax: +43 (1) 534 52 - 146 

-----Ursprüngliche Nachricht-----

Von: Andrew Welch [mailto:andrew.j.welch@g...] 
Gesendet: Montag, 05. September 2011 11:35
An: xsl-list@l...
Betreff: Re: [xsl] dates in schema

On 5 September 2011 08:42, Szabo, Patrick (LNG-VIE)
<patrick.szabo@l...> wrote:
> Hi,
> We jave am attribut that holds a date.
> Now i would like to check if that date is in the future.

You can use > and < to compare an xs:date with the current-date() or
current-dateTime()... but just be aware that those functions will
return the same value throughout the life of the transform.

> Is that possible in schema ?!


Andrew Welch

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.