[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] xsl2: temprorary tree containing xsl instructions


Subject: Re: [xsl] xsl2: temprorary tree containing xsl instructions
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sat, 24 Nov 2007 18:14:55 +0530

Hi Rob,
   As per my knowledge, this is not possible with single run of the stylesheet.

You need to write a stylesheet (for 1st pass), that will generate a
stylesheet, that will run in the 2nd pass.

On 11/24/07, Robert Koberg <rob@xxxxxxxxxx> wrote:
> Hi,
>
> Is it possible to create a temporary tree that is a 'simplified'
> stylesheet and have its instructions processed?
>
> For example I create a temporary tree that contains:
>
> <title>
> BigCo.com: <xsl:value-of
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> select="$page-instance/page/metadata/title"></xsl:value-of>
> </title>
>
> $page-instance is a global variable that is (theoretically) not used
> until the temporary tree is processed.
>
> The temporary tree is finally processed by an identity template to copy
> and hopefully process any xsl instructions present in that temp tree.
> But it does not work -- the xsl instructions are just copied to the
> result. Is there a way to make this happen?
>
> thanks,
> -Rob


-- 
Regards,
Mukul Gandhi


Current Thread
Keywords
xsl