[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] embedding contents of external css stylesheet
Try this (where html.css is your css): <?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE stylesheet [ <!ENTITY css SYSTEM "html.css"> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" exclude-result-prefixes="doc" version="1.0"> <xsl:template name="user.head.content"> <style type="text/css"> &css; </style> </xsl:template> </xsl:stylesheet> -----Original Message----- From: Denis Bradford [mailto:denis.bradford@verizon.net] Sent: Sunday, September 21, 2003 8:19 AM To: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] embedding contents of external css stylesheet I would like to embed the contents of an external css stylesheet at user.head.content. That is, instead of a link to the stylesheet (a la html.stylesheet), I would like a document-level <style> block in the head of the document. I want to pull the css rules in from an external, shared file, rather than hardwiring them in the stylesheet. Anybody know how to do this? btw, the idea here is that the generated html file can be moved around and viewed standalone - the external css file is not always convenient. To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]