|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Unprefixed attribute names in RDF
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








