Subject: Re: [xsl] How can one get the name of a template or function? From: Florent Georges <lists@xxxxxxxxxxxx> Date: Wed, 11 Feb 2009 16:43:12 +0000 (GMT) |
David Carlisle wrote: > <xsl:template match="*:template[@name]"> > <xsl:copy> > <xsl:copy-of select="@*"/> > <xsl:element name="xsl:variable"> > [...] Of course, you have to copy parameters first: <xsl:template match="*:template[@name]"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:copy-of select="xsl:param"/> <xsl:element name="xsl:variable"> [...] <xsl:copy-of select="node() except xsl:param"/> That could have an impact on indentation though. Regards, -- Florent Georges http://www.fgeorges.org/ ____________________________________________________________________ ______________________________ Ne pleurez pas si votre Webmail ferme ! Ricupirez votre historique sur Yahoo! Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How can one get the name , David Carlisle | Thread | Re: [xsl] How can one get the name , David Carlisle |
Re: [xsl] How can one get the name , David Carlisle | Date | Re: [xsl] How can one get the name , David Carlisle |
Month |