[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Exclusive XML canonicalization: please check my logic

  • From: Elliotte Harold <elharo@m...>
  • To: XML Developers List <xml-dev@l...>
  • Date: Fri, 19 Dec 2008 05:23:07 -0800

Exclusive XML canonicalization: please check my logic
The following was reported as a bug in XOM. You have a document like this:

<a xmlns="http://www.example.com">
   <b:c xmlns:b="http://www.foo.com"/>
</a>

If you use exclusive XML canonicalization to canonicalize just the child 
b:c element, what you expect is:

<b:c xmlns:b="http://www.foo.com"></b:c>

That is, the default namespace does not get pulled in from the parent. 
This does seem to be the critical difference between canonicalization 
and exclusive canonicalization, but the spec is a little technical. I 
think this is the relevant point; "namespace nodes that are not on the 
InclusiveNamespaces PrefixList are expressed only in start tags where 
they are visible and if they are not in effect from an output ancestor 
of that tag.". In this example, the default namespace is not visibly 
utilized and there is no output ancestor. Thus I think there should be 
no default namespace declaration in the exclusive canonicalization, 
though there would be in regular canonicalization. Is this correct?

-- 
Elliotte Rusty Harold  elharo@m...
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.