This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: XML Reorganisation
- From: "Fries, Markus, fiscus GmbH, Bonn" <M dot Fries at fiscus dot info>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 22 May 2002 15:32:49 +0200
- Subject: AW: [xsl] XML Reorganisation
- Reply-to: xsl-list at lists dot mulberrytech dot com
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