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

Re: Namespaces in Content (was XML-aware programming language?

  • To: Jonathan Robie <jonathan.robie@d...>
  • Subject: Re: Namespaces in Content (was XML-aware programming language?)
  • From: Danny Ayers <danny.ayers@g...>
  • Date: Fri, 3 Dec 2004 18:16:45 +0100
  • Cc: Richard Tobin <richard@i...>, xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=uVocUtp7i5hsalUC1151ZvEpAH1a0rfY4KX7OQnr2T+G4d0OwdlcQvJ3wQAPksPzxaQ4kUwWh1C/GVpYuSMNGL1qBAhI3gJWOOEXzsFi8hcTn3U6fMOcJYAC8uLUIQLygeUOh/MFBzZ9ALyeybOmDi3+l0hbdkKV+rYfJHIW4hk=
  • In-reply-to: <41B0838F.9080605@d...>
  • References: <20041203124952.8D06A1B54F3@m...> <41B0838F.9080605@d...>
  • Reply-to: Danny Ayers <danny.ayers@g...>

xml programming language namespaces registered
On Fri, 03 Dec 2004 10:17:35 -0500, Jonathan Robie
<jonathan.robie@d...> wrote:

> In untyped documents, content is just a sequence of characters, as far
> as the XML parser is concerned. Any namespace interpretation given to
> that content is application semantics, not XML semantics.

I have hard hat and flack jacket on, so...in the same way that
interpretation of XML namespaces happens on top of XML, why not just
layer (schema-independent) disambiguation of abbreviated content on
top of those, e.g.

<dog xmlns="http://purl.org/stuff/dogs/
xmlns:nicer="http://purl.org/stuff/nicer/">
   <nicer:map nicer:prefix="cls"
nicer:namespace="http://purl.org/stuff/colors/"/>
   <paw color="cls:golden" />
</dog>

(This is very similar to the HTML namespace resolution mechanism of
RFC 2731, DC.Description etc, just tweaked for the familiar prefix
syntax. Blogged at
http://dannyayers.com/archives/2004/11/05/exorcising-qnames/).

Cheers,
Danny.


-- 

http://dannyayers.com

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.