[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.