Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] xml:* attributes in Canonicalizer

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <jcowan AT reutershealth.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] xml:* attributes in Canonicalizer
  • Date: Wed, 09 Feb 2005 18:10:07 -0500

John Cowan wrote:

A quick look at Canonicalizer.java for XOM 1.1d5 suggests (and I
haven't tested this) that it propagates xml:* attributes to children
in both whole documents and fragments. This is contrary to Canonical
XML 1.0, which restricts such behavior to "when an XPath node-set is
given as input and the element's parent is omitted from the node-set"
(section 2.4, paragraph 2).


Would this test case identify this issue?

Start with this document:

<root xml:lang="en"><a><b>test</b></a></root>

Choose the document subset selected by /root//node() | //@*

and expect to see

<a xml:lang="en"><b>test</b></a>

I really wish there was a test suite for exclusive XML canonicalization.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page