xsl-list
[Top] [All Lists]

RE: comparing two xpath fragment with xslt1.0

2004-10-08 07:01:22
thank you for yours reactions,
i means that the two xpaths is equivalent in the sense that they produce the same results when evaluated against a particular source document.

regards,

From: "Michael Kay" <mike(_at_)saxonica(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: RE: [xsl] comparing two xpath fragment with xslt1.0
Date: Fri, 8 Oct 2004 14:20:53 +0100

>
> Hi all,
> Should everyone known how to compare two xpath fragments P1
> and P2 with
> xslt?
> Precisely how to determine equivalence between P1 and p2?
> This means that a
> nodes set selected by P1 is equal to the nodes Set selected by P2.
> I thanks all of you in advance.

Do you mean that the two paths must be statically equivalent, in the sense
that (a|b) and (b|a) always produce the same result? Or do you mean that
they are equivalent in the context of a particular schema (for example a/*
and a/c are equivalent if the only permitted child element of a is c). Or do
you mean equivalent in the sense that they produce the same results when
evaluated against a particular source document, for example (key('k', 'z'))
and (../b) might produce the same result?

Michael Kay
http://www.saxonica.com

PS: A maintenance release Saxon 8.1.1 is available, for those who are
interested but don't subscribe to the list.


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


_________________________________________________________________
MSN Actions Solidaires : http://www.msn.fr/actionssolidaires/ la solidarité à portée de click



<Prev in Thread] Current Thread [Next in Thread>