What is a document?

Didier PH Martin martind at netfolder.com
Tue Nov 23 03:01:53 GMT 1999


Hi Mark,

Didier PH Martin wrote:
> Didier reply:
> Yes mark, if we got the notion of scope for rendition it
> would be a lot
> easier to assemble fragment/documents into a whole. Obviously, each
> assembled part would have to take into account that it is
> included in a
> whole for rendition (i.e like an HTML+CSS document for
> example).

Mark said:
I wouldn't impose such a limitation myself. Why should the fragment
'know' anything about its container? (If I understand you correctly -
and apologies if I don't.) Provided it has its namespace declaration
then it can in theory exist in any container that will have it.

Didier reply:
It didn't meant that the fragment has to be semantically aware of the
container but more that the associated style sheet (the style sheet
associated to the fragment) has to be aware of the global context. For
instance, will only provide rendition instructions for the fragment.

Mark said:
In fact, with RDF you could just wrap some XML in a CDATA tag and bung
it in a description. Or you can place it in a BizTalk 'envelope', or you
can use MIME, or even package it up with headers and send it through
HTTP/WebDAV. Each of these has different notions of validity. RDF or
BizTalk (or XML Fragment Interchange) require that the containing
document is well-formed XML with its contained object(s). But a
PROPPATCH in WebDAV requires that the containing document is well-formed
HTTP (plus a bit), and the document describing the elements being
patched are well-formed XML. So we have different notions of
'correctness' with different transports.

So, we have the notion of a document that we need to transport, and it
has its own requirements as to well-formedness, validity, etc. And then
we have the transport mechanism which has its own means of communicating
errors, etc.. And in some situations XML will be used as the transport
mechanism - as with BizTalk - but I don't think it should logically be
treated any different to other transport mechanisms. (Of course it's
handy to have it as XML because we can use all our other tools to handle
transport.)

Didier reply:
I agree

Cheers
Didier PH Martin
mailto:martind at netfolder.com
http://www.netfolder.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list