This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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




<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]