[Home] [By Thread] [By Date] [Recent Entries]

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

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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member