Re: [xsl] is it possible to access the previous context()

Subject: Re: [xsl] is it possible to access the previous context()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 15 Mar 2001 17:48:45 GMT

<table>
<xsl:for-each select="/root/FilterTypes/FilterType">
 <xsl:variable name="thistype" select="@type"/>

...

<td>here I want to display the @value attribute for the
FilterType element of the current Filter where the @type attribute is equal
to the @type attribute of the current /root/FilterTypes/FilterType in the
context of the outermost for loop. ugh.  even I get confused by this
sentence but it's right, that's what I am trying to do. 

  <xsl:value-of select="FilterType[@type=$thistype]/@value"/>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread