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

* Christian Wolfgang Hujer wrote:
>1. There more cases than these two simple:
>a) being sent as text/html
>b) being sent as text/xml
>c) being sent as text/xhtml

This isn't a valid case, there is no such MIME type, behaivour thus
undefined.

>[...] being loaded locally [...]

This is all implementation depending and can't be standardized.

>Then if the software detects it is XHTML, additionally it is of interest
>wether it behaves like simple "stupid" HTML software or like "intelligent"
>XML software

No and "detection" in a MIME envoirement must not be performed either.

>3. It is legal to send xhtml as text/html to an XHTML user agent.

Yes, but the HTML WG created some contradiction in terms here, since
text/html must not be treated as XHTML and therefore neither the XHTML
1.0 recommendation nor any other XHTML rules apply.

>What if it only contains <?xml-stylesheet?> processing instructions, but no
><link rel="stylesheet"/> elements?

Section 4.2 of HTML4 applies, the user agent must not render this SGML
processing instruction. Nothing else is defined.
-- 
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:32 UTC