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

Re: XML-aware programming language?


remove default namespace

Jonathan Robie wrote:
>
> In general, I think that our data model does a good job of simplifying
> what we inherit from XML Schema. Namespaces ... are tough. I don't know
> how we could do better. Do you have any concrete suggestions here?

One approach:  Sanitize everything as it comes into the system;
that is, transform all inputs so that each namespace prefix maps
to exactly one namespace URI and vice versa, and remove default
namespace declarations (adding prefixes to unqualified GIs as
necessary).  In addition, normalize the database -- IOW float all the
namespace declarations to the root node and remove duplicates.
(If the input was sanitized first, there won't be any conflicts.)

This preserves the semantics according to [REC-xml-names] --
it's the namespace URI that's important, not the prefix --
and preserves *most* of the Infoset semantics.  The only
thing that gets changed is the [in-scope namespaces] information
item, which in turn only affects the meaning of documents
whose vocabulary includes QNames-in-content.

This last might be problematic -- for example, it's perfectly
reasonable to want to store a collection of XSLT stylesheets
in an XML database -- but this can be addressed by practicing
"enterprise sanity", i.e., always use the same prefixes
everywhere (which most people tend to do anyway).


--Joe English

  jenglish@f...

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.