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
chelsea drennanSubject: Comparing 2 passed Date Values
Author: chelsea drennan
Date: 29 Dec 2008 06:29 PM
Hi,

I am trying to do something that seems fairly simple, but I am unable to wrap my head around the concept in my post-holiday state.

I want to compare two date values that are passed into the XSL. If the dates are the same, I don't want to display anything in the field, but if the values are different, I will pass in the 2nd date value.

Thanks for your help,
Chelsea



Posttop
Alberto MassariSubject: Comparing 2 passed Date Values
Author: Alberto Massari
Date: 30 Dec 2008 05:34 AM
Hi Chelsea,
if you are using XSLT 2.0, you can just compare the two variables using the '=' operator. If you are using XSLT 1.0, you will have to dig in libraries like FUNCTX (http://www.xsltfunctions.com/xsl/c0002.html) for some support.

Alberto

 
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.