xsl-list
[Top] [All Lists]

Re: [xsl] Restrictions on pattern for the match attribute of the xsl:template element

2009-02-10 11:19:24

Bruder, Christian (Pfaeffikon) wrote:

match="Object[PropertyList/Property[Name='Property1][Value='abc']]"
match="Object[PropertyList/Property[Name='Property1
and Value='abc']]"

Which one is preferred and why?

  There are the same.  Sometimes I use the former, when I see both filters as 
"independent" (the second one further filters the sequence), and sometimes the 
latter, when I see both comparisons as the same single logical condition.  Even 
if often, when a single logical condition is more complex than a single 
comparison, I create a predicate function.

  But all that is subjective...

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
























      
__________________________________________________________________________________________________
Ne pleurez pas si votre Webmail ferme ! Récupérez votre historique sur Yahoo! 
Mail ! http://fr.docs.yahoo.com/mail/transfert_mails.html

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