W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

[widgets] Applying Stylesheets to Resources

From: Doug Schepers <schepers@w3.org>
Date: Thu, 11 Feb 2010 11:57:09 -0500
Message-ID: <4B7436E5.6070000@w3.org>
To: "public-webapps@w3.org" <public-webapps@w3.org>
Hi, folks-

I've meant to mention this for a while (a couple years), and it's 
probably too late, but I thought I'd drop it in for future consideration.

One odd part of the separation of content and presentation is that a 
stylesheet is applied to a file by including a link to the stylesheet in 
the target file.  That is totally backward.

It's understandable in the historical context, because the file that was 
being navigated to was the HTML page, and there was no other way to 
associate or allow discovery of other applicable stylesheets.  Widgets, 
because it defines a manifest, could correct this, if the author wants 
that option.

I would like the manifest to add a linking element that points to a 
stylesheet and to its target resource (an HTML or SVG file, say), and 
says, apply this stylesheet to this file.

This would allow the author to reuse and repurpose a target resource 
without touching that file itself.  Mix this with parameters (something 
we are working on in SVG and CSS), and it's a nice model.

Is it possible to add something like this?

Regards-
-Doug Schepers
W3C Team Contact, SVG and WebApps WGs
Received on Thursday, 11 February 2010 16:57:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:37 GMT