As Object module is responsible for rendering included elements (java,
movies, etc...) - is it also taken into consideration to render any other
inline objects? Eg. inclusions form other documents.
The "type" attribute is to be changed into "srctype" that can be any of
defined mime types supported by browser or its plugins (eg.
"application/html+xml", "image/jpeg") which gives us chance to let "type"
define a way that element should be included.
As for now - XHTML is not implementing many of hypertext theories - like
real transclusion.
Translusion in XHTML. Proposal.
Inclusion of other documents or their parts should be allowed. Right now it
is only possible to translude full and complete documents using <iframe>,
<img> (deprecated in XHTML 2.0) and in some cases <object> tags. But idea of
translusions is to allow also parts of remote documents to be included. This
can be achieved in few steps.
1. Document Header.
Author of the document must explicitly allow translclusion of his work. This
may also prevent other documents to include full work (with <iframe> tag).
This can be done with some header tags. Browser must not render content that
is not allowed by author within other document.
2. Document elements
All document elements allowed for translusion should have their own id.
3. Transclusion
Possible for whole (allowed by author) document with <object> tag or for its
parts also with object tag with some parameters.
"type" stands for the way contnt should be rendered: text, xhtml, html,
etc...
3.1 Proposal 1
<!-- remote document.html -->
<p id="myid1">some text</p>
<!-- document with translusion-->
<object src="www.remoteserver.com/document.html"
srctype="application/html+xml" type="plain" transid="myid1">
<em>cannot get content from remote server</em>
</object>
3.2 Proposal 2
<object src="www.remoteserver.com/document.html"
srctype="application/html+xml" type="plain">
<param name="tranid">myid1</param>
<em>cannot get content from remote server</em>
</object>
3.3 Proposal 3
<object src="www.remoteserver.com/document.html#myid1"
srctype="application/html+xml" type="plain">
<em>cannot get content from remote server</em>
</object>
What do you think?
Regards
Jakub Dabrowski