Hi Adam, the request is made from the stylesheet menunode_extract.xsl:


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:ci="http://apache.org/cocoon/include/1.0"
    xmlns:men="http://www.web-som-virker.no/namespaces/menunode"
    xmlns:ns="http://apache.org/cocoon/include/1.0"
    xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform note.xsd">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
        <xsl:copy-of select="/men:menunode/ns:include"/>
    </xsl:template>
</xsl:stylesheet>


...which is parsing the menunode xml document:


<?xml version="1.0"?>

<men:menunode xmlns:men="http://www.web-som-virker.no/namespaces/menunode">
<ns:include src="" of the brave!&amp;layout_template=lay-frontpage.xsl&amp;document_template=doc-frontpage.xsl&amp;document_url=1.html&amp;document_id=1" xmlns:ns="http://apache.org/cocoon/include/1.0"/>
</men:menunode>


The whole point is to return the <ns:include> src-attribute to the sitemap and break it up into parameters inside the templateBuilder match.



Kjell Arne











On Mon, 2005-02-28 at 10:58 +1300, Adam Ratcliffe wrote:

Hi Kjell
 
How are you requesting the 'templateBuilder' resource, from the browser, a sitemap redirect, or flowscript?
 
Cheers
Adam
-----Original Message-----
From: Kjell Arne Brødreskift [mailto:[EMAIL PROTECTED]
Sent: Monday, 28 February 2005 6:48 a.m.
To: [email protected]
Subject: No pipeline matched request - but it's there?


Hi list.

I get an unexpected error message from Cocoon trying to match the word 'templateBuilder':

   org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: templateBuilder

But the match is there. Here are excerpts from the pipeline:

<map:match pattern="">
<map:redirect-to uri="index.html"/>
</map:match>

<map:match pattern="**.html">
<map:generate src="">
     <map:transform src="">
     <map:transform type="cinclude"/>
     <map:transform src="">
<map:serialize type="html"/>
</map:match>

   <map:match pattern="templateBuilder">
    <map:generate src=""
<map:transform src="">
<map:parameter name="menu_url" value="{request-param:menu_url}"/>
<map:parameter name="menu_name" value="{request-param:menu_name}"/>
<map:parameter name="menu_title" value="{request-param:menu_title}"/>
<map:parameter name="layout_template" value="{request-param:layout_template}"/>
<map:parameter name="document_template" value="{request:document_template}"/>
<map:parameter name="document_url" value="{request:document_url}"/>
<map:parameter name="document_id" value="{request:document_id}"/>
</map:transform>
    <map:transform type="cinclude"/>
    <map:serialize type="xml"/>
   </map:match>


Does anyone know why Cocoon would return this error message when the match really is in the pipeline?


Thanks, Kjell Arne

Reply via email to