![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Selecting largest attribute [Thread Next] Re: Selecting largest attributeTo: NULL Date: 1/2/2007 10:41:00 AM Bjoern Hoehrmann wrote: > * rlberrie@h... wrote in microsoft.public.xml: > >I would like to extract the largest l[x]cache attribute from the > >various properties based on the largest [x] of the attribute name. > >Something along the line of "max(substring(@name,2,1))" would be great > >-- if such a thing existed. Anyone care to take a stab at this one? > > Well, if you pick one of the lxcache values you can search for a node > where the x is larger than the current largest x. If you continue this > you will end up with the largest x and the node it is associated with. > It is not possible to do this using only XPath 1.0. > -- > Bj=F6rn H=F6hrmann =B7 mailto:bjoern@h... =B7 http://bjoern.hoehr= mann.de > Weinh. Str. 22 =B7 Telefon: +49(0)621/4309674 =B7 http://www.bjoernsworld= .de > 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7 http://www.websitedev.d= e/ Bj=F6rn, Thanks. I was hoping there was a method to extract the information with a single XPATH statement, but since there is not, a nice little loop to examine all of the 'cache' items will work just fine. Thanks, Robert | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
