xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: Re: [xsl] Selecting Median of Root to Deepest node
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 1 Aug 2007 11:36:36 +0100

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
-- 
http://andrewjwelch.com


Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor