xsl-list
[Top] [All Lists]

Re: [xsl] Modes (was RE: [xsl] Re: Keys, IDs lookup tables.)

2012-06-11 13:12:16
On Mon, Jun 11, 2012 at 5:54 PM, Michele R Combs <mrrothen(_at_)syr(_dot_)edu> 
wrote:
Thanks.  I should have been clearer in my request.  I understand the concept 
of modes (what they are for) but have been having difficulty putting them 
into execution, and/or untangling them in pre-existing code.  A technical 
explanation with examples is more what I'm looking for.


I have seen modes used to disambiguate template rules where priorities
would have done the job, so the appearance of modes in pre-existing
code may be gratuitous.

My personal preference is to restrict the usage of modes to the use
case where they are necessary, that way the appearance of modes in
code highlights that the nodes in question are  being processed by
more than one template rule and their absence signals they are not. As
Ken usefully pointed out this assumes push style processing.

I find such disciplines useful, it saves you from having to read the
code to find out the same thing.

--~------------------------------------------------------------------
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>
--~--