|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: CSS (via entities)
Hi Nic,
Miloslav Nic wrote:
>
> For an inspiration:
>
> <!DOCTYPE xsl:stylesheet [ <!ENTITY inclusion SYSTEM "foo.css"> ]>
I find it clever, but also dangerous since I am not sure foo.css can
always be considered as well formed XML.
One of the reasons why it might not be well form is character
encoding.
Since it won't have any XML declaration, the parser will assume utf
encoding while the encoding of a CSS document is defined through the
http header.
Also the URLs may include "&" characters in a CSS document.
IMHO, the easiest way to use CSS within XSLT generated (X)HTML documents
is to use external CSS stylesheets by adding a
<link href="foo.css" rel="stylesheet" type="text/css"/>
It's assuming that your stylesheet is available through a http server
though and it's not as convenient if you want to generate its content.
Eric
[1] http://www.w3.org/TR/REC-CSS1#appendix-c
--
See you at XML 2000
http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








