[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How do I use non-literals in <xsl:if statements

Subject: How do I use non-literals in <xsl:if statements
From: "George Martell" <GMARTELL@xxxxxxxxxx>
Date: Wed, 20 Oct 1999 09:10:43 -0600
xsl if statement
I want to compare file_date with another element or attribute, not a literal.  If anyone knows a way to accomplish test statements without using literals, please let me know.  I tried to use variables but my XSL processor must not support them (i.e they're always empty after assignment).  I'm using the LotusXSL processor.

XML INSTANCE:

	<file previous_date="03/13/99">
		<file_date>04/03/99</file_date>
	</file>

XSL STATEMENT (USING LITERAL):

<xsl:if test="file_date[not(. = '03/13/99')]">do something</xsl:if>

XSL STATEMENT (NOT USING A LITERAL)

<xsl:if test="file_date[not(. = @previous_date)]"> do something </xsl:if>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.