This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: is it possible to access the previous context()
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] is it possible to access the previous context()
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 15 Mar 2001 17:48:45 GMT
- References: <EBC6D4248FF6D21190560008C7B1DF41024ABE79@exnpseu002.ny.bzwint.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<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