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

Subject: Re: How do I use non-literals in <xsl:if statements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 20 Oct 1999 16:56:45 +0100 (BST)
I said

> you don't say which node you try to evaluate this on:
which was silly of me as your test said
 file_date[not(. = @previous_date)]

so you must have been on the file node. the @ inside the [] refers
to attributes of the node that . would access.
so you want either current()/@previous_date to get the attribute of the
current node, or equivalently in this the forms i mentioned before,
such as ../@previous_date to get the attribute of the parent of the
file_date node.

David


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


Current Thread