W3C home > Mailing lists > Public > www-html@w3.org > November 2004

Embedding attributes and including content, vs. XFrames

From: Trejkaz Xaoza <trejkaz@xaoza.net>
Date: Fri, 19 Nov 2004 20:46:57 +1100
To: www-html@w3.org
Message-Id: <200411192047.04370.trejkaz@xaoza.net>

From a discussion I just had with a colleague a couple of minutes ago...

The guy was bewildered because XFrames was being put forward instead of frames 
just being deprecated in their entirety.  I agreed, and put forth the idea 
that if XInclude were in the spec, we wouldn't need frames at all.

Frames are largely good for two things:
    1. Scrolling one piece of content without moving another.
    2. Putting common bits of content in separate files, so that the browser
       can cache the static bits while you focus on delivering only the bit
       which is different.

The first of these can be done with CSS using "overflow: scroll" on the part 
which you want to scroll relative to everything else.

But as for putting content in separate files, first we thought that XInclude 
would be neat because it does exactly this.

Then the obvious struck us... XHTML2 has the Embedding Attributes module.  Can 
we not use these attributes to include the common parts of a site?


    <!-- Skipping the <head> for brevity. -->
      <div class="sitemenu">
        <div type="text/html" src="sitemenu.html"/>

      <div class="content">
        <!-- Static content would go here. -->

      <div class="copyright">
        <div type="text/html" src="copyright.html"/>

Two questions:
    1. Is this a perceived, or a sensible, usage of the Embedding Attributes?
    2. If this were used, would the HTML files pointed to by the "src"
       attribute be full XHTML2 files, or would they contain merely the
       fragment which is to be included?

If this is a sensible usage, the an example should be added to the 
specification to cover this usage.


             Email: Trejkaz Xaoza <trejkaz@xaoza.net>
          Web site: http://xaoza.net/
         Jabber ID: trejkaz@jabber.xaoza.net
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73

Received on Friday, 19 November 2004 09:46:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:09 UTC