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

Fw: Namespaces

  • From: "Oren Ben-Kiki" <oren@c...>
  • To: "XML List" <xml-dev@i...>
  • Date: Wed, 3 Feb 1999 10:52:54 +0200

andrew laymen
Don Park <donpark@q...> wrote:
>I would like to recommend that we use James' document as the start of the
>"XML Namespaces FAQ" and build on it.  The question is not "can we
>understand it?" but "can my customers understand it?".

Excellent notion. While we are at it, here's a question which seems to be at
the heart of the issue and which, alas, James didn't address: global
attributes.

Andrew Laymen has made a pretty good case that they simply don't exist.
However most of the wrangling about namespaces seem to refer as to how they
are handled. If Andrew is wrong, I'd like to know why. If he's right, what
is the
debate about?

I note that this contradicts a sample which was not challenged by anyone:

<x xmlns:n1="http://www.w3.org"
     xmlns="http://www.w3.org" >
    <good a="1"     b="2" />
    <good a="1"     n1:a="2" />
  </x>

would have the equivalent (extended) Clark encoding
(http://www.jclark.com/xml/xmlns.htm)

<{http://www.w3.org}x xmlns:n1="http://www.w3.org"
                      xmlns="http://www.w3.org" >
    <{http://www.w3.org}good {{http://wwww.w3.org}good}a="1"
                             {{http://wwww.w3.org}good}b="2" />
    <{http://www.w3.org}good {{http://wwww.w3.org}good}a="1"
                             {http://www.w3.org}a="2" >
  </{http://www.w3.org}x>

>From reading Andrew's post I presumed it would be converted to:

<{http://www.w3.org}x xmlns:n1="http://www.w3.org"
                      xmlns="http://www.w3.org" >
    <{http://www.w3.org}good {{http://wwww.w3.org}good}a="1"
                             {{http://wwww.w3.org}good}b="2" />
    <{http://www.w3.org}good {{http://wwww.w3.org}good}a="1"

{{{http://www.w3.org}good}http://www.w3.org}a="2" >
  </{http://www.w3.org}x>

On what is the previous interpretation based? If the second one is correct,
wouldn't it solve all the issues? Take Mark's example of multiple use of
'id'. It would become immediately clear that the XSL pattern:

*/attribute(id)

Would match:

*/attribute({<any-element>}id)

While the pattern:

*/attribute(db:id)

Would match

*/attribute({{<any-element>}<db-namespace-uri}id)

This seems to neatly resolve the issue.

Of course, I could be talking utter nonsense here. That's why I'd appreciate
an addition to James' document which would clear this up.

Share & Enjoy,

    Oren Ben-Kiki



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.