Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Pragmatic namespaces

From: Liam Quin <liam@--.--->
To: Dave Pawson <davep@-------.--.-->
Date: 8/6/2009 5:18:00 PM
On Wed, Aug 05, 2009 at 08:46:18AM +0100, Dave Pawson wrote:
> On 08/05/2009 07:29 AM, Liam Quin wrote:
[...]

> >Some differences --
> >* I want people to be able to write a "namespace definition"
> >   that would let them combine namespaces...
> >
> >* I don't think it's a good idea to hard-wire any namespaces,
> >   but I'm OK with an application-specific default namespace
> >   definition file that can be overridden by an author.
> 
> 
> Are you going to expand on these two please Liam?

Sorry for being gnomic and rushed in my note...

> Define combine?
> Hard wire as in 'define the ns association in the instance'?
>   How else might it be done? In the schema?
> Do you mean 'author' or XML application?

I proposed here (and in somewhat modified form for Balisage next week)
the idea of a miniature schema, a namespace definition file, that
(1) identifies elements that introduce a new default namespace, and
(2) can refer to other namespace definition files.

I would use a single attribute to refer to a namespace definition file
on my top-level element in my instance, or at any other subtree.

"I" here is document author, although an application (such as a
Web browser) could have a default namespace dfeinition file.

In this way, I can for example define XHTML such that a math element
(say) automatically implies the MathML namespace, an svg element
similarly; and I can handle the fact that hred in SVG is in the xlink
namespace.

But I can also make my own namespace, and arrange that elements
within it are automatically assigned to other namespaces as
needed, without extra markup in the document.  I suppose the
modern way to describe this would be "unobtrusive namespaces" :-)

So that's the sense in which I could combine namespaces.

A disadvantage is that I did not have a good way for explicitly
disambiguating by adding prefixes.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent