atom feed90 messages in org.xml.lists.xml-devRe: [xml-dev] Pragmatic namespaces
FromSent OnAttachments
Micah DubinkoJul 31, 2009 4:06 pm 
COUTHURES AlainAug 1, 2009 3:35 am 
Amelia A LewisAug 1, 2009 7:43 am 
Kurt CagleAug 2, 2009 11:54 am 
Kurt CagleAug 2, 2009 12:30 pm 
Amelia A LewisAug 2, 2009 6:44 pm 
rjel...@allette.com.auAug 2, 2009 9:06 pm 
Micah DubinkoAug 2, 2009 9:21 pm 
Micah DubinkoAug 2, 2009 9:39 pm 
Dave PawsonAug 2, 2009 11:20 pm 
Michael LudwigAug 3, 2009 8:30 am 
Kurt CagleAug 3, 2009 10:41 am 
Pete CordellAug 3, 2009 11:56 am 
Michael KayAug 3, 2009 1:46 pm 
Kurt CagleAug 3, 2009 4:42 pm 
rjel...@allette.com.auAug 3, 2009 8:39 pm 
Pete CordellAug 4, 2009 12:36 am 
Tim BrayAug 4, 2009 9:44 am 
Micah DubinkoAug 4, 2009 11:17 am 
Micah DubinkoAug 4, 2009 10:54 pm 
Liam QuinAug 4, 2009 11:28 pm 
Dave PawsonAug 5, 2009 12:45 am 
Pete CordellAug 5, 2009 3:17 am 
Tim BrayAug 5, 2009 12:53 pm 
Liam QuinAug 5, 2009 1:46 pm 
Michael KayAug 5, 2009 4:44 pm 
'Liam Quin'Aug 5, 2009 4:50 pm 
Pete CordellAug 6, 2009 12:23 am 
Pete CordellAug 6, 2009 12:35 am 
rjel...@allette.com.auAug 6, 2009 12:57 am 
Michael LudwigAug 6, 2009 1:37 am 
Kurt CagleAug 6, 2009 1:47 am 
rjel...@allette.com.auAug 6, 2009 1:50 am 
Michael KayAug 6, 2009 2:10 am 
Michael KayAug 6, 2009 2:21 am 
Michael KayAug 6, 2009 2:25 am 
Pete CordellAug 6, 2009 2:38 am 
Pete CordellAug 6, 2009 2:45 am 
rjel...@allette.com.auAug 6, 2009 3:08 am 
Pete CordellAug 6, 2009 3:30 am 
Michael KayAug 6, 2009 3:33 am 
Simon St.LaurentAug 6, 2009 5:57 am 
Dave PawsonAug 6, 2009 7:16 am 
Michael KayAug 6, 2009 7:32 am 
rjel...@allette.com.auAug 6, 2009 7:41 am 
Richard SalzAug 6, 2009 7:46 am 
Liam QuinAug 6, 2009 8:03 am 
Liam QuinAug 6, 2009 8:10 am 
Michael LudwigAug 6, 2009 8:10 am 
Pete CordellAug 6, 2009 9:37 am 
Dave PawsonAug 6, 2009 9:47 am 
Liam QuinAug 6, 2009 9:51 am 
Dave PawsonAug 6, 2009 9:53 am 
Dave PawsonAug 6, 2009 9:54 am 
Liam QuinAug 6, 2009 10:17 am 
Kurt CagleAug 6, 2009 10:19 am 
Richard SalzAug 6, 2009 10:25 am 
Michael LudwigAug 6, 2009 10:32 am 
Kurt CagleAug 6, 2009 10:38 am 
Richard SalzAug 6, 2009 10:41 am 
Pete CordellAug 6, 2009 10:42 am 
Dave PawsonAug 6, 2009 10:47 am 
Liam QuinAug 6, 2009 11:05 am 
Pete CordellAug 6, 2009 11:49 am 
John L. ClarkAug 6, 2009 12:32 pm 
Simon St.LaurentAug 6, 2009 1:06 pm 
Michael LudwigAug 6, 2009 1:13 pm 
Michael LudwigAug 6, 2009 1:16 pm 
Michael LudwigAug 6, 2009 1:39 pm 
Liam QuinAug 6, 2009 2:43 pm 
Michael LudwigAug 6, 2009 3:11 pm 
Michael KayAug 6, 2009 3:32 pm 
rjel...@allette.com.auAug 6, 2009 8:21 pm 
rjel...@allette.com.auAug 6, 2009 8:32 pm 
Michael KayAug 7, 2009 1:10 am 
michael odling-smeeAug 7, 2009 1:28 am 
Michael KayAug 7, 2009 1:33 am 
michael odling-smeeAug 7, 2009 2:24 am 
Michael LudwigAug 7, 2009 3:00 am 
Dave PawsonAug 7, 2009 8:50 am 
Liam QuinAug 7, 2009 9:08 am 
Micah DubinkoAug 7, 2009 5:03 pm 
Micah DubinkoAug 7, 2009 5:05 pm 
Robert KobergAug 7, 2009 5:08 pm 
Dave PawsonAug 12, 2009 12:34 am 
Dave PawsonAug 13, 2009 12:35 am 
Henri SivonenAug 13, 2009 11:47 am 
Micah DubinkoAug 23, 2009 3:05 pm 
David CarverAug 23, 2009 4:21 pm 
Henri SivonenAug 24, 2009 4:03 am 
Subject:Re: [xml-dev] Pragmatic namespaces
From:Micah Dubinko (Mica@marklogic.com)
Date:Aug 2, 2009 9:21:43 pm
List:org.xml.lists.xml-dev

Hi Alain,

Requirement: Ask not if it is good enough, ask if it can be popular enough.

(Thanks to Douglas Crockford for the quote). This proposal will horrify the purists, but that's OK.

Yes, it's a very important point but I wouldn't like to reduce XML possibilities either. Easy for non-programmers, powerful for others : is it possible ?

Here's my current thinking. First I want to fully define what the "Java-style" namespaces syntax looks like when applied to HTML, and HTML-like XML. Even if that fails miserably it will at least help illuminate what the ultimate solution in HTMLn (where n >= 5) needs to look like. The kinds of suggestions that arise from this (including yours below) are indeed illuminating. :-)

At some point, my personal conjecture that the Java-style solution will work as-is will probably break down, in which case all these proposals will become very useful. So it's not that I'm ignoring these, just putting them on the stack.

Today it is commonplace to have documents that are well-formed XML (including namespace well-formedness), but treated by browsers as HTML tag soup. Even if these kinds of documents are less common than one would expect on the crawlable web, I see this use case as something that participants will find an important feature of the solution. A major goal of this proposal is to help smooth over those kinds of use cases.

ONLY on the root element is a problem for generic XML tools. The Component Manager I wrote for XSLTForms development environment can work for any XML document with its own namespaces, unknown by the Component Manager itself. With XSLT, xsl:copy-of can be used for a node from an external document, the stylesheet doesn't have to know each and every namespaces.

It's also a problem for XForms instance data.

Particularly while I'm in Java-namespace-isomorphic mode, I'm not convinced by this argument. After all, Java doesn't allow additional imports in the middle of a class or method. Making this more flexible has a cost associated with increased complexity, ability for code to surprise, and reduced ability to look in one place to see what's going on.

But there's a scope issue here too: generic XML tools are outside the scope of this proposal. It's dealing with HTML documents, and the subset of XML documents that happen to be HTML documents. It should be as easy as we can make it to produce these kinds of documents with XML tools, but not at the expense of complexificationizing the whole endeavor.

I'll have more to say in my response to Amy.

... list of grandfathered namespaces ...

It's pragmatic.

This kind of list should not change frequently. It sounds more than reserved prefixes.

I chose the word "grandfathered" carefully. The intent is a one-shot list, reflecting current practice of what kinds of things are meaningfully used in HTML-like XML today. Vocabularies developed in the future could either live with the reversed DNS name as the namespace, or perhaps this proposal will merge with something like XIN, also proposed on this list a few months ago, or round-trippable dotted names.

The grandfathering is a critical part of making something that works the way developers think. Java, for instance, contains a large number of built-in libraries for import. XML+XMLNS even has one predefined prefix, "xml". Many implementations have assumed more. When everyone (excepting pathological cases, whether document or person!) agrees what prefixes like "html" or "math" or "svg" stand for, it's hostile to require spelling it out repetitively. This is the place where purist arguments will find the strongest objection, but in a sense, a purist design got us to where we are today. Hence a proposal with "pragmatic" in the name. :)

Thank you for this proposal. Yes, something has to be done and it sounds much more easy this way.

If this proposal (or one like it) gets traction, a natural next step will be to apply the same principle to XPath so that in-scope prefixes are no longer needed in the content, and expressions can truly stand alone. E.g.

/html.head/html.body/xforms.model/org.example.data

Thanks, -m

_______________________________________________________________________

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-@lists.xml.org subscribe: xml-@lists.xml.org List archive: http://lists.xml.org/archives/xml-dev/ List Guidelines: http://www.oasis-open.org/maillists/guidelines.php