[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] XPath question
Subject: RE: [xsl] XPath question From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Wed, 12 Jun 2002 09:53:30 +0100 |
> I tried the following query and got results even the actual > number of count is 1. It seems that if either side of the > expression is true, the whole expression is true. > /someelement[2 < count(somechildelement) < 5] > The expression a < b < c means (a < b) < c which means number(a < b) < number(c) So the result of the comparison a<b is converted to a number (0 or 1) and this is compared with c. Note very useful, but that's the way it works. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath question, Wei-Chin Hsieh | Thread | [xsl] Flat file to hierarchy?, Denny, Allison M. (L |
Re: [xsl] Re: Date Parsing (Was: Do, Peter Davis | Date | RE: [xsl] servlet to xsl, Michael Kay |
Month |