cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: HTTP 404 error and sitemap setting
Date Fri, 08 Mar 2002 18:41:22 GMT
> From: Olivier Rossel [mailto:olivier.rossel@anyware-tech.com]
> 
> Mamadou Bobo Sylla wrote:
> 
> >I have cleared the sub-directories of work, started
> >Tomcat but the error persists.
> >
> >By the way both voice-email.xml and
> >voice-exam-result.xml receive parameters.
> >
> >Any other suggestion?
> >
> I wonder if the serverpages generator accepts XML files as input.
>
> Isn't it supposed to be XSP files (with xsp:page as the root element
and
> the xsp namespace declared)?

XSP is XML. With ns1:page root element and ns1='http://apache.org/xsp'.
Regarding file extension - Cocoon is not Windows; it does not care about
file extensions.


> Could the file generator be better?

Only if input is not XSP.


> What you can do also is to make the same pipeline for both files.
> Here is the syntax:
> 
> <map:match pattern="sic/xsp/*.xml">
>  <map:generate type="serverpages"
>                src="sic/xsp/{1}.xml"/>
>  <map:transform type="xslt"
>                 src="sic/{1}.xsl"/>
>  <map:serialize type="xml"/>
> </map:match>

That's good advice.

Vadim

> 
> Try that with the "serverpages" generator and the "file" generator.
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message