Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Selecting largest attribute

From: rlberrie@-------.---
To: 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



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent