This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]