W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > January to March 2002

XPath errors in specifications

From: TAMURA Kent <kent@trl.ibm.co.jp>
Date: Thu, 7 Mar 2002 13:17:44 +0900
Message-Id: <200203070417.NAA26436@ns.trl.ibm.com>
To: w3c-ietf-xmldsig@w3.org
The following XPath expressions are invalid according to XPath
1.0.  We can not add a predicate to '('...')'.

REC-xml-c14n-20010315:
2.1	(//. | //@* | //namespace::*)[not(self::comment())]
3.7	(//. | //@* | //namespace::*) 
[ 
   self::ietf:e1 or (parent::ietf:e1 and not(self::text() or self::e2)) 
   or 
   count(id("E3")|ancestor-or-self::node()) = count(ancestor-or-self::node()) 
] 

CR-xml-exc-c14n-20020212:
2.1	(//. | //@* | //namespace::*)[ancestor-or-self::n1:elem1]
2.2	(//. | //@* | //namespace::*)[ancestor-or-self::n1:elem2]


In general,
	(//. | //@* | //namespace::*)[expr]
must be
	(//.[expr] | //@*[expr] | //namespace::*[expr])

-- 
TAMURA Kent @ Tokyo Research Laboratory, IBM
Received on Wednesday, 6 March 2002 23:18:18 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:14 GMT