W3C home > Mailing lists > Public > www-xml-stylesheet-comments@w3.org > March 2004

Error in xml-stylesheet PI Example

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Sat, 06 Mar 2004 21:29:30 +1100
Message-ID: <4049A80A.6000405@iinet.net.au>
To: www-xml-stylesheet-comments@w3.org

   I found an error in an example within the document “Associating Style 
Sheets with XML documents Version 1.0” [1].

   In the first example of comparing the HTML 4.0 <link> element with 
the <?xml-stylesheet?> PI, The rel attribute should be rel="stylesheet".
Should be:
<LINK href="mystyle.css" rel="stylesheet" type="text/css">
<?xml-stylesheet href="mystyle.css" type="text/css"?>
<LINK href="mystyle.css" rel="style sheet" type="text/css">
<?xml-stylesheet href="mystyle.css" type="text/css"?>

[1] http://www.w3.org/TR/xml-stylesheet/

Lachlan Hunt
Received on Saturday, 6 March 2004 05:33:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:26 UTC