This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: using xsl:with-param in apply-templates problem
- From: "Niki Dinsey" <niki dot dinsey at csw dot co dot uk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 12:02:57 +0100
- Subject: RE: [xsl] using xsl:with-param in apply-templates problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks for the reply, didn't help though :(
Here is the first few templates with the change:
<xsl:template match="//file">
<xsl:param select="attribute::name" name="filename"/>
<xsl:apply-templates select="document($filename)"
mode="file">
<xsl:with-param name="filename"
select="$filename"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="text()" mode="file"/>
<!-- Matches for OTN -->
<xsl:template
match="//ATITLE|//BTITLE|//CTITLE|//DTITLE|//ETITLE|//FTITLE"
mode="file">
<xsl:param name="filename"/>
<title>
<xsl:attribute name="filename">
<xsl:value-of select="$filename"/>
</xsl:attribute>
<xsl:attribute name="chapID">
<xsl:value-of
select="ancestor::*[last()]/attribute::ID"/>
</xsl:attribute>
</title>
</xsl:template>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com [mailto:owner-xsl-
> list@lists.mulberrytech.com] On Behalf Of Jarno.Elovirta@nokia.com
> Sent: 27 August 2002 11:15
> To: xsl-list@lists.mulberrytech.com
> Subject: RE: [xsl] using xsl:with-param in apply-templates problem
>
> Hi,
>
> > <xsl:template match="//file">
> > <xsl:variable select="@name" name="filename"/>
>
> this should be xsl:param.
>
> Jarno
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list