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

Re: Additional test cases for Exclusive XML Canonicalization

From: Joseph Reagle <reagle@w3.org>
Date: Fri, 29 Mar 2002 17:02:17 -0500
Message-Id: <200203292202.RAA29016@tux.w3.org>
To: "Gregor Karlinger" <gregor.karlinger@cio.gv.at>
Cc: "XMLSigWG" <w3c-ietf-xmldsig@w3.org>
On Tuesday 26 March 2002 06:32, Gregor Karlinger wrote:
>   2. Apply a XPath Transform with the appropriate XPath
>      (specified in a comment in the test case file)

Hi Gregor, 

I'm a little confused on this note. When I pass your xpath expression 

  test_c14n.py -i iaikTests.example1.xml -x "self::Parent or
  (parent::Parent and not(self::Child)) or self::GrandChild or
  parent::GrandChild"

I get a (not  very useful) error [1]. But I'd still expect and error 
because I'm not sure which BNF productions you are expecting this XPath 
expression to match?

However, the following does work and agrees with your result for test 1:

  test_c14n.py -e -i iaikTests.example1.xml 
  -x "(//. | //@* | //namespace::*)[self::Parent or (parent::Parent
   and not(self::Child)) or self::GrandChild or parent::GrandChild]"


[1]     _in_subset = lambda subset, node: subset is None or node in subset 
TypeError: 'in' or 'not in' needs sequence right argument
Received on Friday, 29 March 2002 17:02:20 GMT

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