Subject: Re: [xsl] param vs context for passing arguments From: Piotr Dobrogost <pd@xxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 17 Dec 2009 23:33:49 +0100 |
Date: Wed, 16 Dec 2009 22:59:48 GMT From: David Carlisle <davidc@xxxxxxxxx> Subject: Re: [xsl] param vs context for passing arguments Message-Id: <200912162259.nBGMxmgA023755@xxxxxxxxxxxxxxxxxxx>
if I understand what you mean then change
<xsl:template name="ReplaceHyphenWithUnderscore"> <xsl:analyze-string select="@name" regex="-">
to
<xsl:template match="@*" mode="ReplaceHyphenWithUnderscore"> <xsl:analyze-string select="." regex="-">
then in whichever template where you want this do
<xsl:attribute name="something"> <xsl:apply-templates select="@something" mode="ReplaceHyphenWithUnderscore"/>
Regards Piotr Dobrogost
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] param vs context for pass, Michael Kay | Thread | RE: [xsl] param vs context for pass, Piotr Dobrogost |
Re: [xsl] retaining entity declarat, David Carlisle | Date | RE: [xsl] param vs context for pass, Piotr Dobrogost |
Month |