Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 46028 invoked from network); 27 Feb 2005 23:48:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Feb 2005 23:48:31 -0000 Received: (qmail 76072 invoked by uid 500); 27 Feb 2005 23:48:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 76050 invoked by uid 500); 27 Feb 2005 23:48:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 76036 invoked by uid 99); 27 Feb 2005 23:48:26 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 210-54-239-27.adsl.xtra.co.nz (HELO arjan) (210.54.239.27) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 27 Feb 2005 15:48:24 -0800 Received: from localhost ([127.0.0.1] helo=ARJAN) by arjan with esmtp (Exim 4.43) id ICLGOJ-0002BW-2J; Mon, 28 Feb 2005 12:45:55 +1300 Reply-To: From: "Adam Ratcliffe" To: , Subject: RE: No pipeline matched request - but it's there? Date: Mon, 28 Feb 2005 12:45:54 +1300 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001E_01C51D93.71610970" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <1109543836.7482.32.camel@ferrari.brodreskift.no> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_001E_01C51D93.71610970 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. Cheers Adam -----Original Message----- From: Kjell Arne Br=C3=B8dreskift [mailto:kab@web-som-virker.no] Sent: Monday, 28 February 2005 11:37 a.m. To: adam@prema.co.nz Cc: users@cocoon.apache.org Subject: RE: No pipeline matched request - but it's there? Hi Adam, the request is made from the stylesheet menunode_extract.xsl: ...which is parsing the menunode xml document: The whole point is to return the 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: =EF=BB=BF=20 Hi Kjell =20 How are you requesting the 'templateBuilder' resource, from the = browser, a sitemap redirect, or flowscript? =20 Cheers Adam -----Original Message----- From: Kjell Arne Br=C3=B8dreskift [mailto:kab@web-som-virker.no] Sent: Monday, 28 February 2005 6:48 a.m. To: users@cocoon.apache.org 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: =20 =20 Does anyone know why Cocoon would return this error message when = the match really is in the pipeline? Thanks, Kjell Arne ------=_NextPart_000_001E_01C51D93.71610970 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =EF=BB=BF
Hi=20 Kjell
 
I added your mappings to my sitemap and using stylesheet=20 menunode_extract.xsl, menunode.xml, and a dummy=20 templateBuilder
pipeline was able to match it fine.
 
I=20 think you may need to take another look at the templateBuilder pipeline. = The=20 source for the generator for this pipeline is = referencing
your=20 namespace stripping stylesheet, probably not what you = want.
 
In=20 your HTML matching pipeline you could just use the file generator to = read the=20 menunode XML document directly as your
transform is only copying the content of the source document to = the=20 output anyway.
 
Cheers
Adam
-----Original Message-----
From: Kjell Arne = Br=C3=B8dreskift=20 [mailto:kab@web-som-virker.no]
Sent: Monday, 28 February = 2005 11:37=20 a.m.
To: adam@prema.co.nz
Cc:=20 users@cocoon.apache.org
Subject: RE: No pipeline matched = request -=20 but it's there?

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


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


...which = is=20 parsing the menunode xml document:


<?xml=20 version=3D"1.0"?>

<men:menunode xmlns:men=3D"http://www.web-= som-virker.no/namespaces/menunode">
<ns:include=20 = src=3D"cocoon://templateBuilder?menu_url=3Dindex.xml.preformat&amp;me= nu_name=3DStartside&amp;menu_title=3DHome=20 of the=20 = brave!&amp;layout_template=3Dlay-frontpage.xsl&amp;document_templ= ate=3Ddoc-frontpage.xsl&amp;document_url=3D1.html&amp;document_id= =3D1"=20 xmlns:ns=3D"http://apache.org/cocoon/in= clude/1.0"/>
</men:menunode>


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



Kjell=20 Arne











On Mon, 2005-02-28 = at=20 10:58 +1300, Adam Ratcliffe wrote:
=EF=BB=BF =
Hi Kjell
 
How are you=20 requesting the 'templateBuilder' resource, from the browser, a = sitemap=20 redirect, or flowscript?
 
Cheers
Adam
-----Original=20 Message-----
From:=20 Kjell Arne Br=C3=B8dreskift=20 [mailto:kab@web-som-virker.no]
Sent:=20 Monday, 28 February 2005 6:48 a.m.
To:=20 users@cocoon.apache.org
Subject:=20 No pipeline matched request - but it's=20 there?


Hi=20 list.

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

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

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

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

<map:match = pattern=3D"**.html">
<map:generate=20 src=3D"site/{1}.menunode"/>
     <map:transform=20 src=3D"style/menunode_extract.xsl"/>
     <map:transform=20 type=3D"cinclude"/>
     <map:transform=20 src=3D"style/removeNsPrefix.xsl"/>
<map:serialize = type=3D"html"/>
</map:match>

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


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


Thanks, Kjell Arne=20
------=_NextPart_000_001E_01C51D93.71610970--