W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > October to December 2000

Re: Case-sensitivity, child sequences

From: Emil Åström <Emil.Astrom@excosoft.se>
Date: Mon, 06 Nov 2000 17:59:53 +0100
Message-ID: <3A06E389.FE216EF5@excosoft.se>
To: "Eve L. Maler" <eve.maler@east.sun.com>
CC: www-xml-linking-comments@w3.org
"Eve L. Maler" wrote:

> >2. Do child sequences in XPointer include comments and
> >processing instructions? The spec. says that child sequences
> >select among "child elements" which to me implies that
> >comments and PIs are skipped. This seems to differ from
> >the position() function in XPath. If this is true, then maybe
> >it should be noted explicitly in the XPointer spec?
> It seems pretty explicit already, as you have noted.  Child sequences are
> basically equivalent to doing /*[n]/*[n]... .

Maybe I misunderstand things here, but it seems to me that
an XPointer "/1/1" and XPath "/*[1]/*[1]" will not return the
same node in the following example (if the XPointer only counts
elements) since MY_PI is not an element.

  <?MY_PI test?>


  Emil Astrom, programmer at Excosoft AB
  emil.astrom@excosoft.se    tel:  +46 8 633 29 00
Received on Monday, 6 November 2000 12:00:10 UTC

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