Re: [xsl] XPath condition supplied as a parameter

Subject: Re: [xsl] XPath condition supplied as a parameter
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 23 Oct 2002 16:42:39 +0100
your condition param is (most likely) a string so
is legal but [$data_condition] is true just if the supplied string has
non zero length, which may not be your desired meaning.

In common with most languages, xslt does not have expression valued

Some systems have an xx:evaluate extension function to evaluate a string
as an xpath expression or in simple cases you can do as in your firs
filter [name()=$data_tag] and just have teh expression parameterised by
the string which you pass in as a parameter.


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

Current Thread