NOTE: Stylesheets and XML

Simon St.Laurent SimonStL at classic.msn.com
Sun May 10 03:17:20 BST 1998


Jon Bosak wrote:
>At the request of the W3C XML WG, James Clark has put into the form of
>a Note a proposal made some time ago for a simple method for
>associating stylesheets with XML documents.  This method closely
>parallels the mechanism used for the same purpose in HTML 4.0.  It is
>not an official recommendation, but the proposal has already been
>successfully implemented and should serve well for the first
>experiments with XML/CSS browsers.  See
>
>   http://www.w3.org/TR/NOTE-xml-stylesheet

After taking a look at the note, I have a concern.

The note proposes
<?xml:stylesheet href="mystyle.css" type="text/css">

as the equivalent for the HTML

<LINK href="mystyle.css" rel="stylesheet" type="type/css">

(There are, of course, many more examples...)

The same information, for the most part, is contained in both statements, and 
a processing instruction ducks the issues raised by using an element to 
implement the link.  Still, I'm wondering if XML isn't already becoming loaded 
down with different ways to reference external material.

External entities provide one mechanism for including material. The DOCTYPE 
declaration provides another mechanism.  This processing instruction is yet 
another mechanism.  XLink provides another set of mechanisms which at least 
'transclude' information if not 'include' it.  

I realize that these things are are connecting material of different types in 
different contexts, but it seems too many mechanisms are providing similar 
functionality in different contexts.

I'm definitely _not_ saying that this way of implementing stylesheets is a bad 
idea - it's probably the most convenient way to do it in many circumstances.  
I'm hoping strongly that we don't find any other needs that require another 
reference of a different type.

Simon St.Laurent
Dynamic HTML: A Primer / XML: A Primer / Cookies


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/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe 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