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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.