W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > April to June 2000

XPath examples in the spec.

From: TAMURA Kent <kent@trl.ibm.co.jp>
Date: Tue, 20 Jun 2000 09:43:36 +0900
Message-Id: <200006200043.JAA18444@ns.trl.ibm.com>
To: w3c-ietf-xmldsig@w3.org
Chapter 6 of the spec. has some XPath examples.  The following
is one of them:

       <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
         <XPath>(//. | //@* | //namespace::*)[not(ancestor-or-self::Signature)]

This expression has element name 'Signature' without a prefix.
Accoding to XPath 1.0, non-prefixed name like it must not have
namespace.  This example does not work because the Signature
element must have the 'http://www.w3.org/2000/02/xmldsig#'

I think that we can write like '*[local-name()="Signature" and
namespace-uri() ="http://www.w3.org/2000/02/xmldsig#"' in such

Third paragraph of http://www.w3.org/TR/1999/REC-xpath-19991116#node-tests
	This is the same way expansion is done for element type
	names in start and end-tags except that the default
	namespace declared with xmlns is not used: if the QName
	does not have a prefix, then the namespace URI is null.

TAMURA Kent @ Tokyo Research Laboratory, IBM
Received on Monday, 19 June 2000 20:44:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:21:33 UTC