forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Holler <holler_mar...@gmx.net>
Subject DocBook stylesheets with forrest
Date Sun, 12 Sep 2004 08:08:06 GMT
Hello,

I started with the FAQ article
http://forrest.apache.org/faq.html#docbook because I would like to be
able to write my xml source in the DocBook format. Further I would
like to use the DocBook stylesheets directly. I have been trying to
get this working for a long time now and tryed a lot of different
things in the different files. Here is what my present configuration
looks like:

My asterisk.xml source file
---------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "">
<book lang="de">
<bookinfo>
  <title>Asterisk</title>
  <author><firstname>Martin</firstname><surname>Holler</surname></author>
</bookinfo>

<chapter>
  <title>SMS</title>
  <para>
  <variablelist>
    <title>Font Filename Extensions</title>
      <varlistentry>
        <term><filename>TTF</filename></term>
        <listitem>
          <para>
            TrueType fonts.
          </para>
        </listitem>
      </varlistentry>
    </variablelist>
  </para>
</chapter>
</book>

My src/documentation/sitemap.xmap file
--------------------------------------
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
 <map:pipelines>
  <map:pipeline>
  <map:match pattern="**/resolver-*.html">
    <map:generate src="content/xdocs/{1}/resolver-{2}.xml"/>
    <map:transform src="file:///home/martin/opt/docbook-xsl-1.65.1/xhtml/docbook.xsl"/>
    <map:serialize/>
  </map:match>
  </map:pipeline>
 </map:pipelines>
</map:sitemap>

I do not know if I have to write <map:match
pattern="**/resolver-*.html"> (as I would say from the FAQ) or
<map:match pattern="**asterisk.xml"> (as I would say from reading
"Using Forrest") or if both of these are wrong. I tryed many things
here.

The error message
-----------------
------------------------------------------------------------------------ 
cocoon 2.1.2
Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------ 

X [0] favicon.ico BROKEN: No default type exists for 'match' at file:/home/martin/opt/apache-forrest-0.5.1-bin/private/build/tmp/context/./sitemap.xmap:5:43
X [0] index.html  BROKEN: No default type exists for 'match' at file:/home/martin/opt/apache-forrest-0.5.1-bin/private/build/tmp/context/./sitemap.xmap:5:43
Total time: 0 minutes 17 seconds

BUILD FAILED
/home/martin/opt/apache-forrest-0.5.1-bin/forrest.build.xml:631: Java returned: 1

I do not have this error message when there is no sitemap.xmap in
src/documentation. But then forrest does not use the DocBook
stylesheets. I use the binary Version of forrest 0.5.1.
BTW: I do not want the favicon.ico to be created. Where can I turn
this off.
Thanks for your time reading this.

Regards,

        Martin

Mime
View raw message