- From: Jens Meiert <jens.meiert@erde3.com>
- Date: Wed, 23 Apr 2003 08:48:03 +0200 (MEST)
- To: www-html@w3.org
Related to this, I only see the typical problem developing or specifying
simple ('KISS') or generic. Because of the complexity of this topic I will
observe it, first of all...
Jens Meiert.
>
> > > I'll agree that using the title attribute to indicate whether an
> > > external style sheet is the preferred stylesheet is kludgy.
> > > However, since XHTML2 doesn't have to be backward compatable, it
> > > would be possible to change this behavior so that the only thing
> > > that the title attribute does is provide an advisory title. Perhaps
> > > the navindex attribute could be used instead with external
> > > stylesheets so that a navindex of 0 indicates the preferred
> > > stylesheets?
> >
> > Why? The idea was as simple as genial. The 'title' attribute will
> > stay optional, and so you do not have to assign your style sheet
> > integrations with a title.
>
> The whole method of specifying the difference between 'preferred',
> 'alternate' and 'persistent' external style sheets in HTML4 (and by
> extension the XHTML2 WD) is a kludgy one that depends upon whether or
> not a title attribute is assigned and what the rel attribute is set to.
> (See: http://www.w3.org/TR/html4/present/styles.html#h-14.3.2 )
> However given that the Embedding and the Hypertext Attribute
> Collections are available for the style element, we could indicate the
> difference between these three without resorting to the link element.
> One slight change here from what I said earlier as navindex="1" and not
> navindex="0" normally indicates the first element to receive attention.
>
> <style src="persistent.css" />
> <style src="preferred.css" navindex="1" />
> <style src="alternate.css" navindex="2" />
> <style src="alternateprint.css" navindex="2" media="print" />
> <style src="secondalternate.css" navindex="3" />
>
> Using navindex in this way would also allow inline style sheets to be
> preferred or alternate style sheets while the current specification
> only allows them to be persistent. However I do see problems with this
> idea. The main one is that this gives navindex a totally different
> meaning for the style element as opposed to any other element. Perhaps
> a special attribute sheetindex with the same range of values (0 to
> 32767) would suffice. I'm also not sanguine about having an index of 0
> indicating persistence as navindex="0" normally indicates that the item
> is among the last to receive any attention after those with positive
> indices do.
>
--
Jens Meiert
Steubenstr. 28
D-26123 Oldenburg
Telefon +49 (0)441 99 86 147
Telefax +49 (0)89 1488 2325 91
Mobil +49 (0)175 78 4146 5
eMail <jens@meiert.com>
Internet <http://meiert.com>
Received on Wednesday, 23 April 2003 02:48:12 UTC