Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 31786 invoked by uid 500); 25 Jan 2002 14:20:40 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 31775 invoked from network); 25 Jan 2002 14:20:39 -0000 Message-ID: <3C516977.684D5545@softsolutions.fr> Date: Fri, 25 Jan 2002 16:19:35 +0200 From: "MOODAD (Shadi LB Soft)" X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: How to configure sitemap.xmap References: <3C5038C8.26DFF3B5@softsolutions.fr> <3C505C57.9030101@hartle-klug.com> Content-Type: multipart/alternative; boundary="------------507CBF30791820670E337D2B" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------507CBF30791820670E337D2B Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 8bit � Hi I have tried the following configuration � �� ��� ��� ��� �� so the sitemap.xmap compile succesfully but when I make the following request: test/TestXML.xsp I have the following error �org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: test/TestXML �������� at org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:2921) �������� at org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:2393) �������� at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:234) �������� at org.apache.cocoon.components.source.SitemapSource.(SitemapSource.java:152) it seems like the pipeline have generate another file but without the extention. In fact what i need is to tell the cocoon to take the xsp file and execute the java script inside it then pass it to the transformer. but it seems it doesn't pass the generation phase. do i have to specify another type for Michael Hartle wrote: > MOODAD (Shadi LB Soft) wrote: > > > Hi > > I'm trying to generate pdf reports using the cocoon servlet. > > I have configured a pipeline like that to handle the xsp files > > / / > > / / > > / / > > / / > > / / > > / / > > / / > > Uh, you got some parts wrong; both map:generate and map:transform lack a > "src" attribute which tells generators what content to start generating > from and transformers the rules how to transform what comes down the > pipeline. The Cocoon welcome page links to a fo2pdf example that may > give some help. For starters, try something like this instead: > > > > > > > > > > > So I got the following error with stack trace: > > org.apache.cocoon.ProcessingException: Could not setup pipeline.: > > org.xml.sax.SAXException: Invalid System ID > > > In short, "Invalid System ID" means something like "File not found"; in > your pipeline definition, you did not even specify the "src" attribute > (the "System ID") ;) > > Best regards, > > Michael Hartle, > Hartle & Klug GbR > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org > For additional commands, email: cocoon-dev-help@xml.apache.org -- Soft Solutions, Liban Net Developper Moodad Shadi www.softsolutions.fr � --------------507CBF30791820670E337D2B Content-Type: text/html; charset=x-user-defined Content-Transfer-Encoding: 7bit  
Hi
I have tried the following configuration
  <map:pipeline>
   <map:match pattern="**.xsp">
    <map:generate type="serverpages" src="cocoon:/{1}"/>
    <map:transform src="xml2xml.xsl"/>
    <map:serialize type="html"/>
   </map:match>
  </map:pipeline>

so the sitemap.xmap compile succesfully but when I make the following request: test/TestXML.xsp
I have the following error
 org.apache.cocoon.ResourceNotFoundException: No pipeline matched request: test/TestXML
         at org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:2921)
         at org.apache.cocoon.www.conf.cocoon.sitemap_xmap.process(sitemap_xmap.java:2393)
         at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:234)
         at org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.java:152)
it seems like the pipeline have generate another file but without the extention.
In fact what i need is to tell the cocoon to take the xsp file and execute the java script inside it then pass it to the transformer.
but it seems it doesn't pass the generation phase.
do i have to specify another type for <map:generate>

Michael Hartle wrote:

MOODAD (Shadi LB Soft) wrote:

> Hi
> I'm trying to generate pdf reports using the cocoon servlet.
> I have configured a pipeline like that to handle the xsp files
> / <map:pipeline>/
> / <map:match pattern="**.xsp">/
> / <map:generate type="file"/>/
> / <map:transform/>/
> / <map:serialize type="fo2pdf"/>/
> / </map:match>/
> / </map:pipeline>/

Uh, you got some parts wrong; both map:generate and map:transform lack a
"src" attribute which tells generators what content to start generating
from and transformers the rules how to transform what comes down the
pipeline. The Cocoon welcome page links to a fo2pdf example that may
give some help. For starters, try something like this instead:

<map:pipeline>
<map:match pattern="**.xsp">
<map:generate type="serverpages" src="{1}"/>
<map:transform src="your-self-written-xsp2fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
</map:pipeline>

> So I got the following error with stack trace:
> org.apache.cocoon.ProcessingException: Could not setup pipeline.:
> org.xml.sax.SAXException: Invalid System ID
>
In short, "Invalid System ID" means something like "File not found"; in
your pipeline definition, you did not even specify the "src" attribute
(the "System ID") ;)

Best regards,

Michael Hartle,
Hartle & Klug GbR

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

--
Soft Solutions, Liban
Net Developper
Moodad Shadi

www.softsolutions.fr
  --------------507CBF30791820670E337D2B--