Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Selecting Median of Root to Deepest node

From: "J. Zhang" <j.zhang@------>
To:
Date: 8/1/2007 12:21:00 PM
Thanks, this worked! :)



Let's say if I want to expand my script with the 1st quartile and the 
3rd quartile of the absolute path from root to the deepest node...



For 1st quartile it should be:



ancestor::*[position()=floor(last() div 4)]/saxon:path()



For 3rd quartile it should be:



ancestor::*[position()=floor(last() div 4 * 3)]/saxon:path()



Is this correct?



  jz



Andrew Welch wrote:
On 8/1/07, J. Zhang <j.zhang@xxxxxx> wrote:

  
It seems saxon:path does not take an argument. I get an error:



Cannot find a matching 1-argument function named

{http://saxon.sf.net/}path()

    

Should be this way around:



ancestor::*[position()=floor(last() div 2)]/saxon:path()



cheers
andrew


transparent
Print
Mail
Like It
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