W3C home > Mailing lists > Public > www-tag@w3.org > March 2005

Re: C14N isn't widely used?

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Thu, 03 Mar 2005 14:18:04 -0500
Message-ID: <422762EC.8080103@metalab.unc.edu>
To: Tim Bray <Tim.Bray@Sun.COM>
CC: www-tag@w3.org, Norman Walsh <Norman.Walsh@Sun.COM>, Rich Salz <rsalz@datapower.com>

Tim Bray wrote:

> I really must go back and ascertain what work would be involved in 
> making Genx do excl-c14n.  -Tim

For genx this would be fairly easy since genx doesn't do document 
subsets, which are where all the real gotchas pop up. However, it's also 
inappropriate for genx to do this. The primary effect would be that you 
couldn't just add a namespace as soon as somebody asked you to. Instead 
you'd have to wait until the namespace prefix was actually used on an 
element or attribute before outputting the corresponding declaration. 
This can royally muck up documents that depend on namespace prefixes in 
element content and attribute values, such as XPath select expressions 
in XSLT stylesheets or xsi:type attributes in instance documents. In the 
extreme case, a prefix the user asked to map would never be declared at 
all in exclusive canonicalization. :-(

Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
Received on Thursday, 3 March 2005 19:18:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:08 UTC