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: programlisting and email


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker:

The examples in the TDG use either a special CSS stylesheet. In order
to include a stylesheet you'd have to write a customization layer
that looks something like this 

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version='1.0'
                xmlns="http://www.w3.org/TR/xhtml1/transitional";
                exclude-result-prefixes="#default">

<xsl:import href="docbook.xsl"/>

<!-- What stylesheet do we want to use -->
<xsl:variable name="html.stylesheet">generic-style.css</xsl:variable>


And, of course, you need to create the css stylesheet.
 

- ----- Original Message ----- 
From: "Volker Dierks" <v.dierks@sonic.homeunix.net>
To: "docbook ml" <docbook@lists.oasis-open.org>
Sent: Sunday, November 24, 2002 3:23 AM
Subject: DOCBOOK: programlisting and email


> Hello list,
> 
> I'm new to DocBook but managed to write my first little
> documentation with it. All examples about <programlisting>
> shows the HTML output in a gray box with the content of
> <programlisting> in it alligned left (see
> http://www.docbook.org/tdg/en/html/example.html). The HTML
> output of my documentation doesn't show the box and the
> content of <programlisting> is aligned in center position?
> Perhaps I've to give some attributes to <programlisting>?
> 
> My structure is:
> 
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
> 
> <book lang="de">
> 
> <chapter>
> <title> .. </title>
> <para>
> 
> <programlisting>
>    <![CDATA[
>      case "${archive_basename}" in
>        # sun 1.2
>        jdk-1_2*)
>          name="j2sdk1.2"
>          description="Java (TM) 2 SDK 1.2 (Sun)"
>        ;;
>     ]]>
> </programlisting>
> 
> </para>
> </chapter>
> 
> </book>
> 
> An other problem: where do I have to put the <email>
> Element? The DocBook Documentation says that <email>
> can be a child of <author> ... that's my source:
> 
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
> 
> <book lang="de">
> 
> <bookinfo>
> <title> .. </title>
> <author>
>    <firstname> .. </firstname>
>    <surname> .. </surname>
>    <email> .. </email>   <-- where to put it?
>    <affiliation>
>      <shortaffil> .. </shortaffil>
>      <jobtitle> .. </jobtitle>
>      <orgname> .. </orgname>
>      <orgdiv> .. </orgdiv>
>    </affiliation>
> </author>
> <copyright>
>    <year> .. </year>
>    <holder> .. </holder>
> </copyright>
> <abstract>
>    <para> .. </para>
> </abstract>
> </bookinfo>
> 
> </book>
> 
> db2html (jade) gives the following error:
> end tag for element "AUTHOR" which is not open
> 
> Thanks for any suggestions and greetings from Germany
>      Volker
> 
> -- 
> The box said "Requires Win95, NT or better" and so I installed
> Linux.  
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPeDsGF1sel0NpjckEQLcxQCg7whExBzEgJgHSj+6U4YobwXc5VwAoI9r
ZGwbpsQaXUnXc/B6dtvgUhBy
=qMdp
-----END PGP SIGNATURE-----


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