cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <>
Subject RE: No pipeline matched request - but it's there?
Date Sun, 27 Feb 2005 23:45:54 GMT
Hi Kjell

I added your mappings to my sitemap and using stylesheet menunode_extract.xsl, menunode.xml,
and a dummy templateBuilder
pipeline was able to match it fine.

I think you may need to take another look at the templateBuilder pipeline. The source for
the generator for this pipeline is referencing
your namespace stripping stylesheet, probably not what you want.

In your HTML matching pipeline you could just use the file generator to read the menunode
XML document directly as your
transform is only copying the content of the source document to the output anyway.

  -----Original Message-----
  From: Kjell Arne Brødreskift []
  Sent: Monday, 28 February 2005 11:37 a.m.
  Subject: RE: No pipeline matched request - but it's there?

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

  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet xmlns:xsl="" version="1.0"
      xsi:schemaLocation=" note.xsd">
      <xsl:output method="xml" indent="yes"/>
      <xsl:template match="/">
          <xsl:copy-of select="/men:menunode/ns:include"/>

  ...which is parsing the menunode xml document:

  <?xml version="1.0"?>

  <men:menunode xmlns:men="">
  <ns:include src="cocoon://templateBuilder?menu_url=index.xml.preformat&amp;menu_name=Startside&amp;menu_title=Home
of the brave!&amp;layout_template=lay-frontpage.xsl&amp;document_template=doc-frontpage.xsl&amp;document_url=1.html&amp;document_id=1"

  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?

      -----Original Message-----
      From: Kjell Arne Brødreskift []
      Sent: Monday, 28 February 2005 6:48 a.m.
      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 pattern="**.html">
      <map:generate src="site/{1}.menunode"/>
           <map:transform src="style/menunode_extract.xsl"/>
           <map:transform type="cinclude"/>
           <map:transform src="style/removeNsPrefix.xsl"/>
      <map:serialize type="html"/>

         <map:match pattern="templateBuilder">
          <map:generate src="style/removeNsPrefix.xsl"/> 
      <map:transform src="style/layout/{request-param:layout_template}">
      <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 type="cinclude"/>
          <map:serialize type="xml"/>

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

      Thanks, Kjell Arne 
View raw message