OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Customizing docbook.xsltests=HTML_20_30,USER_AGENT_MOZILLA_UAversion=2.50


Hi all,

I'd like to generate HTML output with docbook and I want to make my own 
layout (e.g. link colors, background color, etc.)
I have an example file (test.xml) and a stylesheet (stylesheet.xsl)

If I use the docbook-toys (v.0.61.0) like this:

db2html test.xml

I get my document as expected but withot my changes.

my stylesheet looks like that:
######
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<!-- Original DocBook Stylesheet -->

<xsl:import 
href="/usr/share/sgml/docbook/docbook-xsl-stylesheets-1.53.0/html/docbook.xsl"/>

<!-- My Style (just a dummy test) -->

<xsl:template match="preface">
   <h1>HERE COMES THE PREFACE</h1>
</xsl:template>

</xsl:stylesheet>
######

my xml file look like:
######
<!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook V4.1//EN" "/usr/share/sgml/db41xml/docbookx.dtd">

<?xml-stylesheet
   type="text/xsl"
   href="file://home/mas/projekte/docbook/stylesheet.xsl"?>

<book id="How-to" lang="de">

  <bookinfo>
   <title>Docbook HowTo</title>
   <author><firstname>Sorin</firstname><surname>Marti</surname></author>
   <copyright><year>2001</year><holder>SEMAFOR Informatik & Energie 
AG</holder></copyright>
   <releaseinfo>Version 0.1</releaseinfo>
   <date>28. April 2003</date>
  </bookinfo>

  <preface>
   <title>Preface</title>
    <para></para>
  </preface>

<!-- some test chapters go here -->

</book>
######

I expect that in the preface section should appear the text I inserted 
in my stylesheet but it doesn't.

If I use DocBook-utils (v.0.6.6 (jw version 1.1)) like:

docbook2html test.xml

I get lots of errors:
########
Using catalogs: /usr/share/sgml/html/catalog, 
/usr/share/sgml/docbook/dsssl-stylesheets-1.77/dtds/html/catalog, 
/usr/share/sgml/docbook/dsssl-stylesheets-1.77/html/catalog, 
/usr/share/sgml/docbook/dsssl-stylesheets-1.77/print/catalog, 
/usr/share/sgml/docbook/dsssl-stylesheets-1.77/common/catalog, 
/usr/share/sgml/docbook/dsssl-stylesheets-1.77/catalog, 
/usr/share/sgml/docbook-xml-website-2.0a2/example/bookmark/catalog, 
/usr/share/sgml/jade_dsl/catalog
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.6/docbook-utils.dsl#html
Working on: /home/mas/projekte/docbook/test.xml
jade:E: cannot open "/usr/share/sgml/xml.dcl" (No such file or directory)
jade:/usr/share/sgml/db41xml/docbookx.dtd:74:17:E: "X20AC" is not a 
function name
jade:/usr/share/sgml/db41xml/ent/iso-amsa.ent:8:19:E: "X21B6" is not a 
function name
jade:/usr/share/sgml/db41xml/ent/iso-amsa.ent:9:19:E: "X21B7" is not a 
function name

[...]
########

If I use the same tools with -d option (-d stylesheet.xsl) I get 
following errors:
########
ade:stylesheet.xsl:2:0:E: no document type declaration; will parse 
without validation
jade:stylesheet.xsl:2:4:E: character ":" not allowed in attribute 
specification list
jade:stylesheet.xsl:6:4:E: character ":" not allowed in attribute 
specification list
jade:stylesheet.xsl:10:4:E: character ":" not allowed in attribute 
specification list
jade:stylesheet.xsl:12:5:E: character ":" not allowed in end tag
jade:stylesheet.xsl:14:5:E: character ":" not allowed in end tag
jade:stylesheet.xsl:14:17:E: end tag for "XSL" omitted, but its 
declaration does not permit this
jade:stylesheet.xsl:2:0: start tag was here
jade:E: specification document does not have the DSSSL architecture as a 
base architecture
########

Is something wrong with my installation or is my way absolutely wrong? 
Please help me.

   Greets
      Sorin




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]