[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|