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

Re: How can one get the name of a template or function

Subject: Re: 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)
Re:  How can one get the name of a template or function
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-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.


Florent Georges

Ne pleurez pas si votre Webmail ferme !
Ricupirez votre historique sur Yahoo! Mail !

Current Thread


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.
First Name
Last Name
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.