Re: [xsl] Fundimentle Predicate Problem or Bug??

Subject: Re: [xsl] Fundimentle Predicate Problem or Bug??
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 Sep 2008 15:02:08 +0100
There is no bug.


Ignoring the partd of the xpath that are working as you expect, you
apparently expect 

 Race/RaceType &gt;= 'R' and Race/RaceType &lt;= 'R'

to evaluate to false in this case.

However that is true if there is a  Race/RaceType &gt;= 'R' which there
is, namely <RaceType>S</RaceType> and if there is a
 Race/RaceType &lt;= 'R'  which there is namely  <RaceType>H</RaceType>
so it evaluates to true.

I'm not sure why you expected it to evaluate to false, so difficult to
know what other help to suggest. Perhaps you wanted both clauses to
apply to the same RaceType element but that should be encoded

 Race/RaceType[.  &gt;= 'R' and .  &lt;= 'R']

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread