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

Re: namespaces redux (was: Re: [XML Schema]Here's ho

  • From: Uche Ogbuji <uche@ogbuji.net>
  • To: Amelia A Lewis <amyzing@talsever.com>
  • Date: Mon, 15 Oct 2012 15:02:07 -0600

Re:  namespaces redux (was: Re:  [XML Schema]Here's ho
On Mon, Oct 15, 2012 at 1:37 PM, Amelia A Lewis <amyzing@talsever.com> wrote:
Look! A hobby-horse! Let's ride!

Well it's worth warning that we've thrown out a lot of the toy debris that used to make this particular hobby horse such fun to ride.

 
On Mon, 15 Oct 2012 00:28:49 -0400, Christopher R. Maden wrote:
> On 10/15/2012 12:09 AM, Liam R E Quin wrote:
> (in fact, best practices uses of W3C namespaces are not, ultimately, so
bad).
>
>> You need to be more concrete in your proposal I think :-)
>
> I don’t recall making a proposal... just a critique.  Far easier. (-:

Some possible best practices:

1) do not use QNames in content. This makes use of things like schema
and xslt nearly impossible, but at least avoid creating any new xml
dialect that does this.

As much as I agree with you about the evil of QNames in content, I don't really think it was the job of the Namespaces in XML spec to prevent this.  I guess they could have made a recommendation warding it off, but n the end what other specs do with content is their own business, even if it's very broken.

Also worth noting that for example the mess of RDF/XML illustrates that you get into that sort of mess even outside the content realm.

Anyway, we have no more prefixes (no colons) in MicroXML, so ding dong the witch is dead in our little corner of Oz.


2) declare all bindings to prefixes other than the default as widely as
possible, and never change them. That is, declare on the root element,
use only one prefix for each namespace, and once bound, never change
the binding. Try to only use non-default prefixes only for attributes,
if that is possible.

No prefixes on elements or attributes.

 
3) permit re-binding of the default prefix where needed. Prefer to
rebind the default prefix (null prefix) if elements from a foreign
namespace appear (that is, try to use non-default prefixes only for
attributes).

No default namespaces either (no xmlns).

So now you see why AF or some other completely out of band transform regime seems to be what we have left, unless I'm missing something.  (Yeah, no PIs either, so that back door is closed).


--
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
http://wearekin.org
http://www.thenervousbreakdown.com/author/uogbuji/
http://copia.ogbuji.net
http://www.linkedin.com/in/ucheogbuji
http://twitter.com/uogbuji



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