RE: [xsl] Is it possible to modify the source-tree?

Subject: RE: [xsl] Is it possible to modify the source-tree?
From: "Agnisys Technology \(P\) Ltd." <agnisys@xxxxxxxxx>
Date: Tue, 13 Sep 2005 11:12:56 -0700 (PDT)
Pardon my ignorance, but I'm not familiar with this "xx:node-set()" call.
Do I have to use oraxslt2 like David said or can I continue to use Saxon8B?

Thanks,
Anupam.


--- Michael Kay <mike@xxxxxxxxxxxx> wrote:

> The general approach to writing a multiphase transformation in one
> stylesheet is
> 
> <xsl:variable name="v1">
>   <xsl:apply-templates select="/" mode="phase1"/>
> </xsl:variable>
> 
> <xsl:variable name="v2">
>   <xsl:apply-templates select="xx:node-set($v1)" mode="phase2"/>
> </xsl:variable> 
> 
> <xsl:variable name="v3">
>   <xsl:apply-templates select="xx:node-set($v2)" mode="phase3"/>
> </xsl:variable>
> 
> <xsl:template match="/">
>   <xsl:apply-templates select="xx:node-set($v3)" mode="phase4"/>
> </xsl:template>
> 
> In 2.0 you don't need the calls on xx:node-set().
> 
> So you give these preprocessing templates a mode of "phase1" and invoke the
> processing as in the example above.
> 
> Michael Kay
> http://www.saxonica.com/



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

Current Thread