[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|