W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > July to September 2001

Python Canonical XML

From: Joseph M. Reagle Jr. <reagle@w3.org>
Date: Wed, 25 Jul 2001 11:20:10 -0400
Message-Id: <>
To: "IETF/W3C XML-DSig WG" <w3c-ietf-xmldsig@w3.org>
Cc: Rich Salz <rsalz@zolera.com>



The three important files are: c14n.py
    The c14n module.
    Definitions of namespaces and their URIs.
    Examples from the spec and XPath call for nodelist


#! /usr/bin/env python
'''XML Canonicalization

This module generates canonical XML of a document or element.
and includes a prototype of exclusive canonicalization

This is based on Rich Salz's element node canonicalization which was
extended to support document node canonicalization. It also now
supports XPath subset node list canonicalization. However it presently
doesn't support:
     1. Unicode -- not sure how to get eg6 to work correctly in python. 

Furthermore, it includes the following bugs thought to be in the DOM
implementation Ft.Lib.pDomlette: (Reagle)
     1. does not white space normalize attributes of type NMTOKEN and ID?
     2. seems to be include "\n" after importing external entities?

     "Joseph M. Reagle Jr." <reagle@w3.org>
     "Rich Salz" <rsalz@zolera.com>

$Date: 2001/07/25 15:13:40 $ by $Author: reagle $

Joseph Reagle Jr.                 http://www.w3.org/People/Reagle/
W3C Policy Analyst                mailto:reagle@w3.org
IETF/W3C XML-Signature Co-Chair   http://www.w3.org/Signature
W3C XML Encryption Chair          http://www.w3.org/Encryption/2001/
Received on Wednesday, 25 July 2001 11:20:16 UTC

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