This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE:what about [@this and @that] vs [@this][@that]?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE:what about [@this and @that] vs [@this][@that]?
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 6 Sep 2001 15:54:18 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> In my simple usage, these predicates seem to work exactly the
> same way. Is
> there a subtle difference I should be aware of between using:
>
> select="item[@foo='bar' and @bar='foo']"
>
> as opposed to:
>
> select="item[@foo='bar'][@bar='foo']"
>
They are identical provided neither of the predicates is positional: a
predicate is positional if it is numeric, or if it calls the position() or
last() functions.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list