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] loop without switching context


Subject: Re: [xsl] loop without switching context
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Fri, 23 Mar 2012 08:28:52 +0000

>I realized I could pass in the context node as a param, but it seems that is only giving me access to children and not ancestors of the context node.

Not so, unless you copied it. If you write

<xsl:with-param name="a" select="."/>

then the called template can do $a/ancestor::node().

Michael Kay
Saxonica


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