Subject: RE: DSSSL future From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Tue, 23 Feb 1999 09:00:58 -0500 |
Hi Peter, <YourComment> But now I was talking about alternate style sheets. My intention was to clarify that the specifications say that the browser should make it possible for the user to select style sheet (for example through a menu). In [xml-style], a number of pseudo-attributes for the PI are defined. The semantics of these pseudo-attributes are specified to be exactly the same as defined for <link rel="stylesheet"> in HTML 4.0 if the alternate pseudo-attribute is "no" and <link rel="alternate stylesheet"> if alternate is "yes". Therefore, alternate=no means a preferred style sheet (as specified in HTML 4.0 section 14.3.2) and if alternate=yes, the style sheet is an alternative to the preferred one. The user agent should then use the author's preferred style sheet by default and allow selection between alternate style sheets. Example: <?xml-style href="mystyle.dsl" type="text/dsssl" title="Default"> <?xml-style href="bigprint.dsl" type="text/dsssl" alternate="yes" title="Big Print"> <xml-style href="compact.dsl" type="text/dsssl" alternate="yes" title="Compact"> With the above specification in a prolog of an XML document, the browser should use "Default" by default, and let the user choose between "Default" and the alternatives "Big Print" and "Compact". This behaviour is specified and recommended in the documents referred above. <YourComment> <Reply> I agree. Add to this, the media property so that we have now: <?xml-stylesheet href="mystyle.dsl" type="text/dsssl" title="Default" media="screen"?> <?xml-stylesheet href="bigprint.dsl" type="text/dsssl" alternate="yes" title="Big Print" media="screen"?> <xml-stylesheet href="compact.dsl" type="text/dsssl" alternate="yes" title="Compact" media="screen"> </Reply> Regards Didier PH Martin mailto:martind@xxxxxxxxxxxxx http://www.netfolder.com DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: DSSSL future, Peter Nilsson | Thread | RE: DSSSL future, Peter Nilsson |
RE: DSSSL future, Peter Nilsson | Date | Re: Hypergroves, Chris Maden |
Month |