XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Shalini venkateswaranSubject: Date Compare
Author: Shalini venkateswaran
Date: 13 Jul 2005 03:33 PM
How do I do date compare in xslt.
<record>
<SCHEDULE_ID>106</SCHEDULE_ID>
<PROTOCOL_NUMBER > TEST</PROTOCOL_NUMBER>
<SPECIES >20&#47;Guinea Pig</SPECIES>
<DRAW_DATE >07&#47;25&#47;2005 MONDAY </DRAW_DATE>
<CPL_ASSISTANCE >2</CPL_ASSISTANCE>
<NECROPSY >2</NECROPSY>
<TIME_OF_DELIVERY >11:00 AM</TIME_OF_DELIVERY>
<SPECIAL_REQUIREMENTS >Testing </SPECIAL_REQUIREMENTS>
</record>

If draw_date - current date is < 7 then I need to include an icon


Unknownspecialreq.xsl

Postnext
Tony LavinioSubject: Date Compare
Author: Tony Lavinio
Date: 17 Jul 2005 10:41 PM
If you can use XSLT 2.0, then you can convert the strings into
dates and compare them with the built-in functions.

You could also use the EXSLT functions (Google for EXSLT date and
whatever processor you are using).

Third, you could call out to a Java extension function. With Stylus
Studio, there is an example included that calls into a date-related
method that you could use as a basis for your code.

Postnext
Shalini venkateswaranSubject: Date Compare
Author: Shalini venkateswaran
Date: 18 Jul 2005 05:27 PM
I did a draw_date - sysdate in the sql. This gives me a value and I did a "if diff < 7 " in xslt.
Worked out much simpler and cleaner in my code.
Thanks

Postnext
Priyanka KarthikSubject: Date Compare
Author: Priyanka Karthik
Date: 02 Feb 2008 06:54 AM
Hi,

I need to get the sysdate ie.the current date in an XSL file.

I guess u had mentioned (in ur previous post) about some comparison with the sysdate.

it wud be so helpful if u cud give some solution...ASAP.
Its very urgent

Thanks in Advance

Posttop
Tony LavinioSubject: Date Compare
Author: Tony Lavinio
Date: 02 Feb 2008 05:32 PM
This is the Stylus Studio support forum. Please let us
know which version of our product you are using when you
post a question.

If you are not a user, please use some other forum, such
as xsllist run by Mulberry Technologies.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.