W3C home > Mailing lists > Public > public-xmlhypermedia@w3.org > June 2013

RE: document node attributes

From: Rushforth, Peter <Peter.Rushforth@NRCan-RNCan.gc.ca>
Date: Tue, 11 Jun 2013 12:51:58 +0000
To: "liam@w3.org" <liam@w3.org>
CC: "public-xmlhypermedia@w3.org" <public-xmlhypermedia@w3.org>
Message-ID: <1CD55F04538DEA4F85F3ADF7745464AF24A0A971@S-BSC-MBX1.nrn.nrcan.gc.ca>
> There are multiple data models used with XML - W3C hs 
> specific more than one, and there are others.
> 
> The XPath and XQuery Data Model is the most recent; the XML 
> DOM is another, and some people have argued that the XML 
> Information Set is another.
> 
> XML people tend to be nervous about "hard-coded" but it's 
> true that XML Base would suggest a base URI property.
> 
> But, the DOM spec does do the sort of thing you want, 
> although as properties since the document node can't really 
> have XML attributes, being outside the document.

Oh yes.

> 
> Of course, you'd be abandoning XPath, XQuery, XSLT, XSD, 
> XProc, since such metadata isn't transmitted in XML documents.

Not an acceptable trade off.

> 
> > In other words, could a media type definition say that the document 
> > node of this media type has these fixed attribute values?
> 
> I don't really see advantages over attributes on the root 
> element. 

I think you're right, since once a 'message' gets separated from its
context/metadata there is no guarantee that it be labelled with application/nxml
anymore.  There needs to be, or perhaps just 'should be', an explicit 
bit of metadata such as @xml:href, etc on the root element.  I don't
think that unprefixed @href, @rel etc would work, since in appliaction/xml, they
would be in no namespace and hence not reliably associated with 
a particular meaning.  I was hoping to avoid that though, because of
course you can't have duplicate attributes so having xml:href="http://www.w3.org/XML/1998/namespace"
on the root element would preclude having it point to anything else.


> You could define neoxml:head and neoxml:body 
> instead, as another approach.

As in elements?  While willing to specify concrete attributes, I think
going to the extent of specifying elements is very xhtml or possibly
atom-like, and that has already been done.  

Anyway, it's just a thought experiment.

Cheers,
Peter
Received on Tuesday, 11 June 2013 12:52:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:42:06 UTC