Subject: Re: [xsl] Problem with Saxon 7.9.1 xsl:variable and selecting additional elements from variable value From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 12 Oct 2005 11:53:31 +0100 |
<xsl:variable name="thissection" > <xsl:choose> <xsl:when test="../myns:section"> <xsl:sequence select="../myns:section"/> </xsl:when> <xsl:when test="../../myns:section"> <xsl:sequence select="../../myns:section"/> </xsl:when> </xsl:choose> </xsl:variable> It looks like you want the nearest myns:section ancestor, so: <xsl:template match="myns:content" mode="content"> <mysection origSectionId="{ancestor::myns:section[1]/myns:id}"/> David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem with Saxon 7.9.1 , Olaf Meske | Thread | RE: [xsl] Problem with Saxon 7.9.1 , Michael Kay |
Re: [xsl] Problem with Saxon 7.9.1 , Olaf Meske | Date | RE: [xsl] Performance, Michael Kay |
Month |