tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: XPath function not() not working.
Date Tue, 02 May 2006 21:27:02 GMT
Here's what may be a workaround. I'm not sure of the root cause yet, but 
try this:

<x:set var="nodeSet" select="$xml/books/book[id=$param:bookId]"/>

<x:choose>
     <x:when select="not($nodeSet)">...</x:when>
     <x:otherwise>...</x:otherwise>
</x:choose>

Kris Schneider wrote:
> For Standard 1.1, XPath support is based on Xalan (for 1.0, it's based 
> on Jaxen/SAXPath). How do you have Xalan installed and which version are 
> you using?
> 
> S├ębastien Brodeur wrote:
> 
>> Kris Schneider <kris <at> dotech.com> writes:
>>
>>
>>> Is "bookId" a request parameter? If so, what happens with this:
>>>
>>> <x:when select="not($xml/books/book[id=$param:bookId])">
>>>
>>
>> I try to put a valid id directly, without using the request parameter.
>>
>> <x:when select="not($xml/books/book[id='1'])">
>>
>> The problem still occur.
>>
>> Thank for your reply.

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message