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]
Other format: [Raw text]

AW: XML Reorganisation


Hi!

Either you store what you need from area in a local variable before looping
, or you can use ../../../area[some predicate] or simply ../..

Hope this helps.

Markus Fries

---------------


One thing I am not sure of is how to reference the node matched by the
template while inside a for-each element.
<xsl:template match="province">
	<xsl:for-each select="department">
		...if I want to reference an area as a child of the matched
province
from here, what do I do?...
	</xsl:for-each>
</xsl:template>


 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]