Reinhard Poetz wrote:
> Adriano Smith wrote:
> 
> >is it possible to use something like this in the sitemap?
> >
> > <map:match pattern="*oly.html">
> > <map:generate src="http://xxxxx.com/yyy_oly.html"/>
> > <map:serialize type="wml"/>
> > </map:match>
> >
> >im trying to convert the html page (in the url) to a wml page.
> >However on execution i get the error:
> >
> >Content is not allowed in prolog.
> >
> >org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> >http://xxxxx.com/yyy.html:1:1:org.xml.sax.SAXParseException: Content is not allowed 
> >in prolog.
> >
> >what does this mean?  
> >
> This probably means that you have a source that doesn't provide valid XML.
> Use the HTMLGenerator which can convert HTML into valid XML. IIRC it is 
> in its own block.

Adriano this is a common mistake. You are using the default
generator which handles XML (or XHTML) source:
http://cocoon.apache.org/2.1/userdocs/generators/file-generator.html

You probably want the HTML generator:
http://cocoon.apache.org/2.1/userdocs/generators/html-generator.html

-- 
David Crossley


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to