discuss: Updated CSS for HOWTOs
Subject:
Re: Updated CSS for HOWTOs
From:
Saqib Ali ####@####.####
Date:
21 Mar 2004 03:23:27 -0000
Message-Id: <Pine.GSO.4.55.0403201859140.12489@sjgcs1.stsj.seagate.com>
> You seem to be missing my point: the HTML file is automatically created by Openjade. Does Openjade create the class or, as you suggest, role attributes? If not, you have to go through your HTML file and create them manually - each time you "render" your SGML or XML file to HTML you will have to do this.
> If you don't have the classes (or roles, if you want) that distinguish prompts, user entered text and program output already in the HTML file, no CSS can achieve that differentiation in the formatting.
OpenJade doesn't create classes/roles. It is the function of the
XSL/DSSSL. In a typical XML->HTML output, there are classes as follows;
<div class="blockquote">
.....
<tt class="code">Subject</tt> interface, and the observers
.....
<div class="example">
......
<pre class="programlisting">
......
<div class="itemizedlist">
One can use "blockquote", "code", "example", "programlisting",
"itemizedlist" etc to produce the desired formatting using CSS.
The classes defined by DocBook XSLT is pretty comprehensive, and I think
almost any kind of document can be mapped to it.
In Peace,
Saqib Ali
-------------
http://validate.sf.net <---- (X)HTML / DocBook XML Validator and Transformer