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

Re: targetNamespace and default namespace

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: Michael Kay <mike@saxonica.com>,Thomas Passin <list1@t...>
  • Date: Thu, 29 Sep 2016 11:45:07 -0400

Re:  targetNamespace and default namespace
At 2016-09-29 16:26 +0100, Michael Kay wrote:
Someone, I think, had the bright idea that if a container element is in a namespace

<svg:svg xmlns:svg="http://svg.com/">
<rectangle/>
<circle/>
</svg:svg>

then there is no good reason why its children need to be in a namespace: like attributes, they are scoped by the container. The idea didn't catch on, but the schema spec was written in the belief that this was the way forwards.
This happened to be adopted for OASIS genericode. Only the document element is in the genericode namespace, all descendants are in no namespace.

We have a RDDL document at the URL of the namespace URI:

http://docs.oasis-open.org/codelist/ns/genericode/1.0/

So not only do we get scoping of the elements by the document element, we also get a pointer to documentation (by convention, not by spec).

. . . . . . . Ken


--
Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK |
Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/x/ |
G Ken Holman _ _ _ _ _ _ _ _ _ _ mailto:gkholman@CraneSoftwrights.com |
Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts |
Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal |



[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.