- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 23 Jun 2006 10:06:11 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=3380 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 Hi, As per the XPath 2.0 specification Literal can be specified after // (double slash). 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 expression.) 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. Regards, Atsushi Ohtake Hitachi, Ltd.
Received on Friday, 23 June 2006 10:06:14 UTC