Docbook XML to (X)HTML with CSS Stylesheet
Posted: Tue Jan 31, 2012 1:26 pm
Hello,
we´re trying to convert a Docbook document to HTML with the Oxygen XML Editor using CSS. We already have a XSL stylesheet for PDF output.
What we are trying to do is to import or reference our css stylesheet into the xsl stylesheet needed for the transformation process.
An abstract of our XSL stylesheet:
The generated output in the HTML file seems to be correct ( most formats are used),
but our setttings don´t appear right. In this case, body_text appears in red, but not in black as it supposed to.
<body_text>test</body_text>
If we´re trying to manually adjust the HTML file, the formats are recognized. Nevertheless, Oxygen doesn´t transform the the formats correctly. Could you help me with a possible configuration or explaination?
Thanks!
we´re trying to convert a Docbook document to HTML with the Oxygen XML Editor using CSS. We already have a XSL stylesheet for PDF output.
What we are trying to do is to import or reference our css stylesheet into the xsl stylesheet needed for the transformation process.
An abstract of our XSL stylesheet:
Code: Select all
<xsl:template name="user.head.content">
<style type="text/css">
&css;
</style>
</xsl:template>
Code: Select all
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Book Template Title</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"><style type="text/css">
@import "docbook.css";
/*RapidRep style sheet definition*/
/*General*/
body_text{
font-family: Ariel;
font-size: 10pt;
line-height: 100%;
text-align: left;
padding-bottom: 12pt;
}
<body_text>test</body_text>
If we´re trying to manually adjust the HTML file, the formats are recognized. Nevertheless, Oxygen doesn´t transform the the formats correctly. Could you help me with a possible configuration or explaination?
Thanks!