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

Re: Unprefixed attribute names in RDF

  • From: David Megginson <david@m...>
  • To: xml-dev@l...
  • Date: Sun, 07 Jan 2001 20:23:38 -0500 (EST)

rdf unqualified
Tim Bray writes:
 > At 12:41 PM 07/01/01 -0800, Joe English wrote:
 > >Am I correct in assuming that, in RDF, unqualified attribute
 > >names are treated as though they had the same namespace name
 > >as the element to which they belong?
 > ....
 > >I also notice that other W3C Recommendations seem to use
 > >different conventions -- XSLT uniformly uses unqualified
 > >attribute names, and XLINK seems to always use qualified
 > >ones.
 > 
 > Seems to me it's OK to go either way as long as you make
 > clear what you're doing.  Basically, specs that rely mostly
 > on attributes that might get attached to other people's
 > elements (e.g. xlink) are pretty well forced to prefix, 
 > otherwise it's just fine not to, but specs do need to be
 > clear on this point. -Tim

RDF Model and Syntax, unfortunately, isn't at all clear on this point.
It's probably best always to prefix rdf:about, rdf:resource, rdf:ID,
etc., just to be safe, though the spec does have examples like

  <rdf:Description about="...">
   ...
  </rdf:Description>

implying that 'about' and friends can optionally be unprefixed when
the element name is in the RDF Namespace.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.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.