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

Re: JAXP's ID Transform failing to include namespacedeclaratio

  • To: xml-dev@l...
  • Subject: Re: JAXP's ID Transform failing to include namespacedeclaration attributes
  • From: Mike Champion <mc@x...>
  • Date: Mon, 07 Jan 2002 23:08:09 -0500
  • In-reply-to: <3C3A4DD2.C78383A4@r...>

transform doesn t include namespaces
1/7/2002 8:39:30 PM, Ronald Bourret <rpbourret@r...> wrote:

>Maybe I haven't been reading this thread (or the DOM spec) closely
>enough. Is this saying that DOM 2 doesn't automatically insert namespace
>declarations as needed? That is, users have to add xmlns attributes by
>hand?

Yup.  The DOM essentially presents a *syntax* view of an XML document.
(Remember, it preceded the InfoSet, Namespaces, and XPath by some
time).  This is an EXTREMELY frequently discussed issue in the DOM WG.
The dominant view has always been that DOM user essentially has to do
what someone editing text by hand has to do -- figure out where the 
namespace declaration attributes should go and put them there.  

It is indeed a "big honkin' mess" but it's not clear in my mind whose mess it
is or who can  clean it up.  I must confess that after several years of 
discussions of how to define an API that is simultaneously compatible
with XML syntax, DOM Level n-1, the Namespaces Rec,  robust when things 
are added to or moved around in the tree, minimally inconvenient to XPath users,
implementable without armies of programmers and testers ... I simply curl up
into the fetal position and whimper softly when the subject comes up.
 Anyone who has some great ideas how to do all this (within the additional 
constraints of W3C politics, of course)  can be an Invited Deity in the 
DOM WG as far as I'm concerned.   The best we've come up with so far is
the "superdupernormalize" in DOM L3, along with some parse-time options to
throw away stuff that the InfoSet doesn't represent and some methods to
present an XPath-like view of a DOM tree.

When the going gets tough, the tough refactor?



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.