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

Re: DSDL: use cases: namespace declaration notation


not in any namespace
james anderson wrote:
> A namespace declaration should take the form of an attribute declaration.
> The scope of the namespace declaration is the respective element
> declaration, and the closure of the respective contained element and
> attribute declarations, subject to the limiting effect of contained
> attribute declarations.

While I would agree to this if we were trying to find a notation
consistent with existing DTDs, I prefer John's notation, which (as he
points) is less error prone.

> One of the likely uses for an extended DTD notation would be
> definitions which combine existing DTD-encoded definitions which
> are not namespace-aware. In order for the extended notation to
> integrate such definitions, it must be able to declare
> prefix/namesace-name bindings which have a scope which corresponds
> to the lexical scope of bindings which appear in elements.

[example snipped]

Assuming I read your example correctly, what you want to do is take
element types x and y, which were not in any namespace, and, through a
trick of default namespaces, declare them to be in the data:,ns-a and
data:,ns-b namespaces.

I find this abusive and no more correct than renaming x and y as Fred
and Ginger. They were not in any namespace, so when used in a compound
document, they should continue not to be in any namespace.

Supporting this is quite easy using the NAMESPACE notation, with the
proviso that one must be careful not to declare a default namespace.
(This is similar to using non-namespaced elements in an instance -- the
presence of a default namespace will cause these to be inadvertently
renamed.)

-- Ron

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.