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]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]