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

Re: namespace defaults

Subject: Re: namespace defaults
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Oct 2014 13:08:31 -0000
Re:  namespace defaults
Correct, c is not in any namespace.

There's various terminology for this; you'll sometimes see it being called the
"null namespace". But for some reason, the namespace rec is very insistent
that the collection of names-not-having-a-namespace-uri is not itself a
namespace, it's just a collection of local names. I've been known to call it
the namespace that dare not speak its name.

Michael Kay
Saxonica
mike@xxxxxxxxxxxx
+44 (0) 118 946 5893




On 28 Oct 2014, at 10:15, Marc Lambrichs marc.lambrichs@xxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> We're a bit confused about namespacing. Suppose we have this:
>
> <ns1:a
xmlns:ns1="http://something.org/ns/1"xmlns:ns2="http://something.org/ns/2">
>  <ns2:b>
>    <c>something</c>
>  </ns2:b>
> </ns1:a>
>
> To what namespace does "c" belong to? I would say: a default one, if there
is any. But what if there isn't one? In the latter case, here's our guess:
there's no prefix, so it doesn't belong to any namespace. Right?
>
> We've taking into account
> http://www.w3.org/TR/xml-names/#scoping-defaulting
> and
> http://www.w3.org/TR/xml-names/#concepts
>
> Cheers,
> Marc

Current Thread

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