W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > January to March 2001

XPointer syntax

From: Jeff Lansing <jeff@polexis.com>
Date: Tue, 16 Jan 2001 17:33:22 -0800
Message-ID: <3A64F662.F0634DC9@polexis.com>
To: www-xml-linking-comments@w3.org
Hi,

How  do I point to the string "Valley Center" in the following xml?

<doc>
  <text>New <bold>River Valley</bold> Center Shops<text>
<doc>

How do I do it without the string-range function, I mean? Is it:

xpointer(/doc/text/bold/text()/point()[7]/range-to(/doc/text/text()/point()[12]))
?

And then assuming that this is on the right track, can I reuse a
previous pointing in any way? That is,
if I want to point to the string "Valley" (again, without using
string-range) do I have to say:

xpointer(/doc/text/bold/text()/point()[7]/range-to(/doc/text/bold/text()/point()[13]))
?

(I think not, since there is no notion of variable binding in XPointer.)

Thanks,
Jeff
Received on Tuesday, 16 January 2001 20:34:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:22 UTC