xsl-list
[Top] [All Lists]

Re: Problem with Saxon 7.9.1 xsl:variable and selecting additional elements from variable value

2005-10-12 04:37:14

It's not xsl:sequence that's the problem, it's the fact that you are
creating a temporary tree, which always causes nodes to be copied.

You can use

<xsl:variable name="thissection" select="(../myns:section, ../../myns:section)[1]"/>

Thanks to all I combined the two tips and use something like:
<xsl:variable name="thissection" select="ancestor::myns:section"/>

Regards

Olaf Meske
www.softcare.de

--~------------------------------------------------------------------
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>
--~--