xsl-list
[Top] [All Lists]

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

2011-08-15 15:17:39
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>