Re: [xsl] using OR in a group-ending-with test

Subject: Re: [xsl] using OR in a group-ending-with test
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 15 Aug 2011 21:17:28 +0100
On 15/08/2011 20:51, Jeff Wilson wrote:
@w:val[not(starts-with(.,'Feature')) or 'FeatureType']

If you use a string in a boolean context it coerces to true just if it is non empty, 'FeatureType' is non-empty so the above is


@w:val[[not(starts-with(.,'Feature')) or true()]

which is same as

@w:val

maybe you meant


@w:val[not(starts-with(.,'Feature')) or . = 'FeatureType']


David

--
google plus: https:/profiles.google.com/d.p.carlisle

Current Thread