Subject: RE: equivalence of two predicate tests
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 2 Jun 2003 08:43:06 +0100
|
> in a book i'm perusing at the moment, there's a discussion
> of simple predicates that's a bit confusing, so i just wanted
> to verify that the following two expressions were equivalent:
>
> elt1[elt2/@attr="value"]
>
> elt1[elt2[@attr="value"]]
>
They are indeed equivalent. But don't try to generalize this too far:
the following expressions are NOT equivalent:
elt1[elt2/@attr="value" and elt2/@attr2="value"]
elt1[elt2[@attr="value" and @attr2="value"]]
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|