Python Canonical XML

http://dev.w3.org/cvsweb/2001/xmlsec-python/

_readme.txt

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

_c14n.py

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

This module generates canonical XML of a document or element.
     http://www.w3.org/TR/2001/REC-xml-c14n-20010315
and includes a prototype of exclusive canonicalization
     http://www.w3.org/Signature/Drafts/xml-exc-c14n

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. 
(Reagle)

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?

Authors:
     "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