Subject: Re: [xsl] Modes - Necessary Construct or Syntactic Sugar From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 19 Mar 2013 09:19:18 +0000 |
No, this doesn't work. If you only have one mode, then apply-templates selecting a given node N will always select the same template rule. Modes are the only way you can have two different rules that apply to the same node in different circumstances.Suppose there was a genuine use case for modes. By genuine I mean the transform requires me to process the same nodes more than once and in different ways.
Can I do this without using modes.
The first thing that comes to mind is creating an separate stylesheet for the "2nd mode" and applying it's template rules via apply-imports.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Modes - Necessary Construct o, Ihe Onwuka | Thread | Re: [xsl] Modes - Necessary Constru, Liam R E Quin |
[xsl] Modes - Necessary Construct o, Ihe Onwuka | Date | [xsl] 3D XSLT - Experience and Feed, Eric Bréchemier |
Month |