This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: problems with match
- From: "Jochen Metzger" <j dot metzger at steptown dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 25 Jul 2002 12:36:37 +0200
- Subject: Re: [xsl] problems with match
- References: <E392EEA75EC5F54AB75229B693B1B6A70152E1FF@esebe018.NOE.Nokia.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Jarno,
> > It only works like this:
> >
> > <xsl:template name="title" match="/root/output">
> > <b>Auftrag #<xsl:value-of select="data/ordernr" /> (<xsl:value-of
> > select="data/shopname" />) </b>
> > </xsl:template>
> Isn't this identical to the one above?
Uups, yes, it should have read:
<xsl:template name="title" match="/root/output">
<b>Auftrag #<xsl:value-of select="/root/output/data/ordernr" />
(<xsl:value-of´select="/root/output/data/shopname" />) </b>
</xsl:template>
>Anyhow, calling a template does not change the current node, even if the
template being called has a match attribute.
That was the answer, I was looking for.....
THX
Jochen
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list