Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XPath Select on Strings >Thread Next - Re: XPath Select on Strings Re: XPath Select on StringsTo: NULL Date: 9/4/2004 1:04:00 PM "Julian F. Reschke" <julian.reschke@n...> wrote in message news:ew0xtFmkEHA.644@t...... > David Davidson wrote: > >> I've run into a rather frustrating idiosyncrasy and would greatly >> appreciate any insight. I'm using XPath expressions in an XSLT for-each >> tag to filter data and show subsets of an XML data island to the user. >> I'm using IE 6.0 SP1 and creating the XML data island with an in-line XML >> tag. >> >> The following XPath expression works great: NewDataSet/Table[Group = >> 'Group A'] >> >> This XPath expression returns nothing: NewDataSet/Table[Group >= 'Group >> A'] >> >> My XML data island also contains an integer field, and XPath relational >> expressions work great there. I just seem to have a problem with the >> string fields. Anybody have any ideas? Thanks in advance... > > ... > > XPath doesn't do greater/less comparisons with strings. To do that > properly, it would need a concept of collation sequences (something that > IMHO has been moved into XPath2). > > Julian I don't doubt your answer but this example from the version 4 sdk says it does, although I can't get David's example to work: author[last-name >= "M"] All <author> elements that contain a <last-name> element with a value that begins with the letter M or greater. -- Joe (MVP - xml) | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
