W3C home > Mailing lists > Public > public-change@w3.org > March 2013

XPath to identify a point in an XML document (Was: A sort of synthesis)

From: Innovimax W3C <innovimax+w3c@gmail.com>
Date: Mon, 11 Mar 2013 21:47:29 +0100
Message-ID: <CAAK2GfE3MoCbfV8mPs0R36h=Ja0v_ukQe6+e9S7J_OZ6iWJCYw@mail.gmail.com>
To: dennis.hamilton@acm.org
Cc: "public-change@w3.org" <public-change@w3.org>
Dennis,

Can you elaborate on the exact use case ?

My understanding is that it is possible with XPath depending on your
definition of a *point* (how many points are there in an open tag ?)

PTC uses oid + offset to do that for ages now, and it seems to work.

It seems like XPointer [1] or some variant of it was supposed to do that

Anyway, I think it's probably too hasty to rule XPath out without very good
counter examples

Mohamed


On Mon, Mar 11, 2013 at 7:42 PM, Dennis E. Hamilton <dennis.hamilton@acm.org
> wrote:

> I suspect that XPath works for pure XML change-tracking, although I have a
> question.
>
> I am not conversant enough with XPath to see whether it can isolate a
> point *within* a text node.  My superficial examination of XPath 1.0/2.0
> suggests that there is no path expression into the interior of a text node.
>  Is that considered a problem here, or is there a well-known way of
> addressing that?
>
>  - Dennis
>




-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Monday, 11 March 2013 20:47:57 GMT

This archive was generated by hypermail 2.3.1 : Monday, 11 March 2013 20:47:57 GMT