forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <>
Subject Own type of documen transformed to document-v20
Date Sun, 14 May 2006 07:32:48 GMT

I'd like to have my own document format that can be transformed into
document-v20 (and subsequently into HTML).

<!DOCTYPE status SYSTEM "-//Test//DTD Status Document V0.1//EN">
    <title>Batik conformance status</title>


Previously, I didn't have a sitemap.xmap file.  I think I need one now,
so I've tried one with this content (adapted from the example given when
you do a 'forrest seed'):

  <map:sitemap xmlns:map="">
        <map:action logger="sitemap.action.sourcetype" name="sourcetype" src="org.apache.forrest.sourcetype.SourceTypeAction">
          <sourcetype name="status-v0.1">
            <document-declaration public-id="-//Test//DTD Status Document V0.1//EN" />
      <map:selectors default="parameter">
        <map:selector logger="sitemap.selector.parameter" name="parameter" src="org.apache.cocoon.selection.ParameterSelector"
      <map:resource name="transform-to-document">
        <map:act type="sourcetype" src="{src}">
          <map:select type="parameter">
            <map:parameter name="parameter-selector-test" value="{sourcetype}" />
            <map:when test="status-v0.1">
              <map:generate src="{project:content.xdocs}{../../1}.xml" />
              <map:transform src="{project:resources.stylesheets}/status2document.xsl"
              <map:serialize type="xml-document"/>
        <map:match pattern="**.xml">
          <map:call resource="transform-to-document"> 
            <map:parameter name="src" value="{project:content.xdocs}{1}.xml" />

Actually I have no idea what I'm doing in this sitemap.xmap file; I just
tried to adjust the example one as little as possible for my situation.

I've also put a file called status2document.xml file in
resources/stylesheets, with this content:

  <xsl:stylesheet xmlns:xsl="" version="1.0">
    <xsl:template match="/">
        <xsl:apply-templates select="*/node()"/>
    <xsl:template match="*">
        <xsl:copy-of select="@*"/>
        <xsl:apply-templates selcet="node()"/>
    <xsl:template match="elements">

just as a minimal stylesheet to get me started.  (It should copy all
elements over, except the "elements" element, that gets special

When I try to view status.html after running 'forrest run', I get an
Internal Server Error that says:

  /tmp/batik-forrest/src/documentation/content/xdocs/-/Test/DTD Status Document V0.1/EN (No
such file or directory)

Can someone please tell me where I'm going wrong?


 Cameron McCormack			ICQ: 26955922
 cam (at)			MSN: cam (at)			JBR: heycam (at)

View raw message