This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Declaring internal entities in an xsl-file
- To: xsl-list at mulberrytech dot com
- Subject: Re: Declaring internal entities in an xsl-file
- From: "John E. Simpson" <simpson at polaris dot net>
- Date: Fri, 04 Feb 2000 14:29:53 -0500
- Cc: "Xsl-List" <xsl-list at mulberrytech dot com>
- Reply-To: xsl-list at mulberrytech dot com
At 07:31 PM 2/4/2000 +0100, Mattias Beermann wrote:
>I have an xsl-file that transforms an xml-file into xhtml. In this xsl-file
>I want to specify some internal entities for font face and font size, so
>that I only need to change it at one place. Is there any way I can declare
>just the entities without having a "real" dtd?
<!DOCTYPE xsl:stylesheet [
<!ENTITY headerfont "Arial,Helvetica,Univers,sans-serif">
]>
<xsl:stylesheet... [etc.]
Personally though I'd rather put the font faces/sizes in a CSS stylesheet
and simply emit the <link> tag to connect the XHTML file to it; a lot less
cruft in the result tree (replacing all the font specs with a simple
"class='...'" attribute on the appropriate elements). A matter of taste, maybe!
=============================================================
John E. Simpson
simpson@polaris.net
-------------------------------------------------------------
I put contact lenses in my dog's eyes. They had little
pictures of cats on them. Then I took one out and he ran
around in circles. (Stephen Wright)
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list