RE: [xsl] using xsl:with-param in apply-templates problem

Subject: RE: [xsl] using xsl:with-param in apply-templates problem
From: "Niki Dinsey" <niki.dinsey@xxxxxxxxx>
Date: Tue, 27 Aug 2002 12:02:57 +0100
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@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
> list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jarno.Elovirta@xxxxxxxxx
> Sent: 27 August 2002 11:15
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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


Current Thread