W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2006

[Bug 3380] [FS] //45 returns what?

From: <bugzilla@wiggum.w3.org>
Date: Fri, 23 Jun 2006 10:06:11 +0000
To: public-qt-comments@w3.org
Message-Id: <E1FtiYF-0003vc-Vu@wiggum.w3.org>


           Summary: [FS] //45 returns what?
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Formal Semantics
        AssignedTo: simeon@us.ibm.com
        ReportedBy: atsushi.ohtake.mf@hitachi.com
         QAContact: public-qt-comments@w3.org


As per the XPath 2.0 specification Literal can be specified after // (double
means //45 is the correct path expression.

But I have a doubt regarding the returned value for this expression as it is
not clearly specified in the specification.

1. Should it return me the sequence containing N no. of integer(45). Where N is
the no. of nodes exist into my xml file. (except attribute node).

2. Should it give me an error. (I think it should throw an error as 45(Literal)
can never be the name of element, Hence there is no meaning of this

3. Should it give me the integer(45) only once.

Current spec is 1. But is it helpful to users?
I would appreciate if you help me clarifying this doubt.

Atsushi Ohtake
Hitachi, Ltd.
Received on Friday, 23 June 2006 10:06:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:12 UTC