xsl-list
[Top] [All Lists]

Re: [xsl] How can one get the name of a template or function?

2009-02-11 11:43:36

David Carlisle wrote:

<xsl:template match="*:template[(_at_)name]">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:element name="xsl:variable">
[...]

  Of course, you have to copy parameters first:

    <xsl:template match="*:template[(_at_)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 ! Récupérez votre historique sur Yahoo! 
Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--