Search the web
Sign In
New User? Sign Up
rest-explore
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
RNA - Second Draft   Message List  
Reply | Forward Message #431 of 445 |
Namespaces in RNA


Hi Seairth,

This is a specific point relating to the use of the RNA namespace.

I believe that the RNA elements should only be placed in a namespace if
there is a compelling reason to do so, that brings clear benefits to the
use of RNA. Otherwise, the elements should be left without a namespace.

Here are several examples of XML specifications, each of which use
namespaces differently to suit their needs.

Example 1: XSLT

XSLT elements are placed in a namespace to distinguish them from the
output elements in the transform. Thus <xsl:if> is a directive to the
transformer, while <if> in another namespace or in no namespace is a
literal element for output.

The use of a namespace in XSLT is clearly necessary, even though it does
lead to complicated outcomes in the case of XSLT transforms that seek to
transform or emit other XSLT transforms, but such a use case is probably
going to be complicated whichever approach is taken.

Example 2: XHTML

XHTML elements are placed in a namespace so that they may be used within
other document types and still recognised as being XHTML. This is a much
weaker justification, as the overwhelming majority of XHTML uses are
likely to be in standalone documents where the namespace is irrelevant.

This is borne out by the fact that XHTML elements are rarely explicitly
qualified (<p> is better than <h:p> or <html:p>) and often the namespace
declaration itself is omitted, thanks to the glorious hack of DTD FIXED
attributes. Mixed namespace documents may still be created of course, by
including elements in other namespaces even if the XHTML elements are left
unqualified.

Example 3: XML-RPC

XML-RPC elements are not placed in a namespace, as there is no benefit for
this to be done. They are not nested within arbitrary document types, and
there is no complicated disambiguation requirement as with XSLT. Adding a
namespace in this situation would merely increase the size of the
documents, increase the possible syntactic variations and make processing
them more fragile and require more complicated code.

The use of a namespace for versioning is quite suboptimal, and it's worth
pointing out that XSLT, the most namespace heavy of the three examples,
has a separate version attribute that it uses for this purpose. Such an
attribute is much easier for implementations to parse and much clearer as
to its intent. This also has the benefit of not changing the namespace
unnecessarily, such as when new elements are added but the semantics of
existing elements remain unchanged.

Note that the use or non-use of an RNA namespace does not impact the use
or non-use of other namespaces, such as the Dublin Core namespace for
disambiguating other elements in the notification.

In summary, I think the RNA elements should be used without a namespace,
unless there is a very compelling reason.

Michael Day

--
YesLogic Prince prints XML!
http://yeslogic.com/prince






Sat May 10, 2003 10:54 am

mikeday@...
Send Email Send Email

Forward
Message #431 of 445 |
Expand Messages Author Sort by Date

After much discussion and much thought, I have done a major rewrite of the RNA draft document. I think this new version is significantly better than the prior...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 9, 2003
8:21 pm

Hi Seairth, Nice work :) Here are some rather picky comments, starting with the ... Perhaps "contains the URI of a resource" rather than *to* a resource, and ...
Michael Day
mikeday@...
Send Email
May 10, 2003
6:06 am

Hi Seairth, This is a specific point relating to the use of the RNA namespace. I believe that the RNA elements should only be placed in a namespace if there is...
Michael Day
mikeday@...
Send Email
May 10, 2003
9:32 am

From: "Michael Day" <mikeday@...> ... Hmm... so, in a nutshell: no namespace for RNA, but require any other vocabulary that's used within RNA to be...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 10, 2003
8:11 pm

... Not to mention that if you stick with the current elements, the root element of "rna" is a pretty clear indication of what the document is. Michael Day -- ...
Michael Day
mikeday@...
Send Email
May 11, 2003
12:41 am

From: "Michael Day" <mikeday@...> ... I have cleaned this up a bit... ... Sorry. This was an artifact from when the <query> element was in there. ...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 11, 2003
4:00 am

... Is it optional? :) ... Well, the other alternative would be to *not* require a whole document comparison, if all you really care about are the two identity...
Michael Day
mikeday@...
Send Email
May 11, 2003
6:22 am

From: "Michael Day" <mikeday@...> ... that ... Yeah, that's all I really want (at least for the inboxAgreement). ... True. Maybe the TAG will finally...
Seairth Jacobs
seairthjacobs
Offline Send Email
May 11, 2003
11:56 pm

... Touche! I don't really have a specific must-have example of using markup in those elements, it's more of a nagging feeling that being able to do so ...
Michael Day
mikeday@...
Send Email
May 12, 2003
1:21 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help