W3C home > Mailing lists > Public > www-html@w3.org > January 2007

XHTML2.0 - transclusion

From: Jakub Dabrowski <jakubdab@gmail.com>
Date: Tue, 23 Jan 2007 11:55:31 +0100
Message-ID: <932c89350701230255i635acd52m8203cce31cdb32af@mail.gmail.com>
To: "www-html@w3.org" <www-html@w3.org>
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,

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>

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>

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>

What do you think?

Jakub Dabrowski
Received on Tuesday, 23 January 2007 18:42:11 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 30 April 2020 16:21:01 UTC