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

Subject: Re: [xsl] Problem with Saxon 7.9.1 xsl:variable and selecting additional elements from variable value
From: Olaf Meske <omeske@xxxxxxxxxxx>
Date: Wed, 12 Oct 2005 13:37:14 +0200
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

Current Thread