xsl-list
[Top] [All Lists]

Re: [xsl] loop without switching context

2012-03-23 03:29:09
>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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>