[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Declaring internal entities in an xsl-file

Subject: Re: Declaring internal entities in an xsl-file
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Fri, 04 Feb 2000 14:29:53 -0500
declare entities in xsl file
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@xxxxxxxxxxx
-------------------------------------------------------------
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.