Re: HTML <link rel="stylesheet"> underspecified with multiple languages

Ian Hickson wrote:
>
> HTML4's <link> element (when used to specify stylesheets), and
> thus the <?xml-stylesheet> PI, is underspecified in two particular
> critical cases and one useful case: first, multiple stylesheets
> when one is in a language that does not cope with multiple
> stylesheets, second, multiple stylesheets in different languages[1],

This is what I think should happen:

1.) UA determines which stylesheets are applicable according
    to persistent/preferred/alternate rules, media, and 
    supported style languages.
2.) If there are stylesheets from more than one language
    applicable, the UA uses only stylesheets from the first
    language encountered (all of them). This follows the 
    precedent of "preferred" stylesheets--the first preferred
    sheet is applied, as are any other later stylesheets that
    are part of that set.
3.) If the language cannot cope with multiple stylesheets,
    then only the first linked stylesheet is used.

Alternatively, later stylesheets could be favored.

Received on Friday, 29 June 2001 10:05:17 UTC