Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] a possible bug in Canonicalizer

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Noam Tamim <noamtm AT gmail.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] a possible bug in Canonicalizer
  • Date: Sun, 15 May 2005 15:52:13 +0300

Hi,

I write "possible", because I'm not sure this is really a bug.

Using the Canonicalizer from xom-1.1b1.jar (unstable, I know):

Builder builder=new Builder();
Document doc=builder.build(System.in);
Canonicalizer xcan=new Canonicalizer(System.out,
Canonicalizer.EXCLUSIVE_XML_CANONICALIZATION_WITH_COMMENTS);
xcan.write(doc.getRootElement());

With this input, which AFAIK is already exclusively canonicalized:

<ns1:root xmlns:ns1="some:urn">
<elt1></elt1>
</ns1:root>

I get this output:

<ns1:root xmlns:ns1="some:urn">
<elt1 xmlns=""></elt1>
</ns1:root>

Again - as I understand the specification, there's no need to declare the
default namespace. But maybe I got this wrong, I'm new to Canonicalization.

-Noam.




Archive powered by MHonArc 2.6.24.

Top of Page