forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Neef <>
Subject SourceTypeAction does not start a transformation
Date Wed, 07 Apr 2010 14:43:16 GMT

I like to transform a XML file with various namespaces into the xdoc
format. The XML file is in the xdoc/sap directory and the
transformation is also in place. My problem now is, that nothing
appears on my screen when I want to have a look at the transformed

The header of the source file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<xml-fragment xmlns:rpl="urn:ReceiverDeterminationServiceVi"

Now I like to filter based on the type of the message.

The relevant namespace for me is the rn3 namespace so I changed the
default sitemap to look like this:

<map:sitemap xmlns:map="">
      <map:action logger="sitemap.action.sourcetype" name="sourcetype"

        <sourcetype name="ddp_si-v1.0">
          <!-- <document-element
namespace=""/> -->
         <document-element local-name="rn3"/>
    <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="ddp_si-v1.0">
            <map:generate src="{properties:content.xdocs}{../../1}.xml" />
src="{properties:resources.stylesheets}/rd2document.xsl" />
            <map:serialize type="xml-document"/>
      <map:match pattern="old_site/**.html">
        <map:select type="exists">
          <map:when test="{properties:content}{0}">
            <map:read src="{properties:content}{0}" mime-type="text/html"/>
      <map:match pattern="**.xml">
        <map:call resource="transform-to-document">
          <map:parameter name="src" value="{properties:content.xdocs}{1}.xml" />

I also added a entry in the site.xml which appears in the menu but
does not work as suspected (just a blank page is produced).

  <sap1 label="SAP Example 1" description="SAP Beispiele">
    <docs-sap1 label="SAP 1" href="sap/" tab="sap">
       <sap-pi-rd label="RD" href="si_ddpandmetadata_composite_a_a.html"
        description="Test of How To documents"/>

Hope someone can help.


View raw message