W3C home > Mailing lists > Public > www-html@w3.org > September 2001

Re: Associating style sheets with XHTML documents via processing instruction?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 09 Sep 2001 21:57:18 +0200
To: "Sean B. Palmer" <sean@mysterylights.com>
Cc: "Christian Wolfgang Hujer" <Christian.Hujer@itcqis.com>, <www-html@w3.org>
Message-ID: <c8hnptcs8pvj6alqrq1foc24rjr1gc0e7m@4ax.com>
* Sean B. Palmer wrote:
>> I interpret it the following way:
>> A user agent which is capable of XHTML and XML, and which
>> interprets the stylesheet processing instruction for xml documents,
>> also must interpret the stylesheet processing instruction for xhtml
>> documents since xhtml documents are xml documents.
>
>I'd guess that if the XHTML is being sent as text/html, the UA should
>interpret the <link/> element(s), and if being sent as text/xml, the
>stylesheet PI(s).

Not so, this is a parsing issue. If the document is beeing parsed as
generic XML, the user agent doesn't know about link's semantics but may
interprete the xml-stylesheet processing instruction. If the document is
beeing parsed as XHTML the link element is recognized. Treatment of the
xml-stylesheet processing instruction is undefined for this case, as it
is for all processing instructions.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Sunday, 9 September 2001 15:58:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT