This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Several rules vs a single rule with a choose operator


Trevor Nash wrote:
> My advice would be to choose the method that is going to be easiest to
> change - probably the separate templates route.  As to performance, it
> is true for most software systems that time spent getting the overall
> design right is much more valuable than time spent on the minute
> details of implementation.  In short, stop worrying about it.

Thanks for the advice, Trevor
(as well as for those I have deleted (but not forgot)).

> >  <xsl:template match="node-test[condition2]" priority="2">

> You only need the priority if condition1 and condition2 are not
> mutually exclusive.

Yes, they need not be mutually exclusive.

> In which case I wonder why you are not testing
> the common part in the 'choose' method?

Hmm... Because there is no need. :-)
The two approaches I presented are equivalent in all cases, aren't they?

-- 
Alexander E. Gutman

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]