On 19/03/2013 08:58, Ihe Onwuka wrote:
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.
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.
Michael Kay
Saxonica
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--