Prev | Current Page 47 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

The effectiveness of this
recommendation remains to be seen.
Referencing an External Style Sheet Using an XML PI
What Is CSS?
13 What Is CSS?
In XML documents, including XHTML served as XML, an external style sheet can
be referenced using a processing instruction (PI). Such processing instructions are
normally part of the XML prologue, coming after the XML declaration, but before
the doctype declaration (if there is one) and the root element??™s start tag.
This example shows an XML prologue with a persistent style sheet (base.css), a
preferred style sheet (default.css), and an alternative style sheet (custom.css):


title="Default"?>
title="Custom" alternate="yes"?>
Watch Out for Alternative Spelling
The CSS specifications use the term ???alternate??? instead of ???alternative.??? The attribute
name in a PI must be alternate.


Pages:
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59