forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Eric" <>
Subject Using Docbook
Date Mon, 15 May 2006 15:25:51 GMT
I'm trying to use docbook files as part of the source to Forrest (v7.0).
I want to be able to use docbook and document v2.0. I've tried to get a
match and transform working, but to date all I can get is an empty html
file as output.

Here is the match from my projects sitemap.xml:

<map:sitemap xmlns:map="">

      <map:action logger="sitemap.action.sourcetype" name="sourcetype"
        <sourcetype name="docbook-v4.1.2">
		  <document-declaration public-id="-//OASIS//DTD DocBook
XML V4.1.2//EN" />
    <map:selectors default="parameter">
	    <map:selector logger="sitemap.selector.parameter"
name="parameter" src="org.apache.cocoon.selection.ParameterSelector" />
    <map:match pattern="old_site/*.html">
     <map:select type="exists">
      <map:when test="{project:content}{1}.html">
        <map:read src="{project:content}{1}.html"
          Use this instead if you want JTidy to clean up your HTML
          <map:generate type="html" src="{project:content}/{0}" />
          <map:serialize type="html"/>
   <map:match pattern="**.xml">
     <map:act type="sourcetype" src="{project:content.xdocs}{1}.xml">
     <map:select type="parameter">
      <map:parameter name="parameter-selector-test" value="{sourcetype}"
      <map:when test="docbook-v4.1.2">
	    <map:generate src="{project:content.xdocs}{1}.xml" />
" />

Any help would be great!!


View raw message