On 21 Feb 2017, at 22:08, Eliot Kimber ekimber(_at_)contrext(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
I’m updating code that has expressions like:
<xsl:when test=”*[@a = ‘1’ and @b = ‘2’ and @c = ‘3’]”>
My normal practice would be to use separate predicates:
<xsl:when test=”*[@a = ‘1’][@b = ‘2’][@c = ‘3’]”>
But it occurs to me that in this case the expressions are functionally
identical: the set of predicates is effectively an AND group.
Is there any reason to prefer one form expression over the other?
In a word, no.
Michael Kay
Saxonica
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--