Re: [xsl] Java XSLT transformers and document('') problem

Subject: Re: [xsl] Java XSLT transformers and document('') problem
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 8 Sep 2008 10:16:48 +0100
> I use document('') only to perform call-template by it's name, through
> variable
>
> <xsl:template name="ra:sayHello" match="xsl:template[@name='ra:sayHello']">
>       <xsl:text>Hello!</xsl:text>
> </xsl:template>
> ...
> <xsl:variable name="n" select='ra:sayHello'/>
> <xsl:apply-templates select="document('')/*/xsl:template[@name=$n]">


Why would you want to do that - what problem does it solve?

(you are calling apply-templates on xsl:template and treating it as
input xml, not executing that template...)


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread