cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jasha Joachimsthal <j.joachimst...@onehippo.com>
Subject Re: outputing html
Date Mon, 14 Nov 2011 21:03:33 GMT
It looks like you're mixing a reader with a generator. A matcher can either
have a generator(-transformer)-serializer or a reader, but not both.

Jasha

On 14 November 2011 21:33, Blanco, Jose <blancoj@umich.edu> wrote:

>  I tried using:****
>
> ** **
>
>                                                 <map:match
> pattern="about/index.html">****
>
>                                                                 <map:read
> src="static/about/index.html"/>****
>
>                                                 </map:match>****
>
> ** **
>
> And I’m getting the error:****
>
> ** **
>
> org.apache.cocoon.ProcessingException: Generator already set. Cannot use
> reader 'resource'
> *<map:read>* - context:/resource://aspects/ArtifactBrowser/sitemap.xmap -
> 152:48****
>
> ** **
>
> *From:* Blanco, Jose [mailto:blancoj@umich.edu]
> *Sent:* Monday, November 14, 2011 3:14 PM
>
> *To:* users@cocoon.apache.org
> *Subject:* RE: outputing html****
>
>  ** **
>
> Thank you for all the suggestions.  I’m going to try to put the html in
> the static dir and see if it works. ****
>
> ** **
>
> -Jose****
>
> ** **
>
> *From:* Robby Pelssers [mailto:Robby.Pelssers@nxp.com]
> *Sent:* Monday, November 14, 2011 3:08 PM
> *To:* users@cocoon.apache.org
> *Subject:* RE: outputing html****
>
> ** **
>
> Yep. That would also be possible. ****
>
> ** **
>
> Actually,  if you tell us a bit more how and where the files are stored
> (file repository, database, ..)  we can give some extra guidance or tips
> and tricks.  Just mentioning this because the sample I gave would assume
> the html files are part of your webapp and stored below the COB-INF folder
> of that cocoon block. That would not be really advisable of course.  ****
>
> ** **
>
> Robby****
>
> ** **
>
> *From:* Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
> *Sent:* Monday, November 14, 2011 9:02 PM
> *To:* users@cocoon.apache.org
> *Subject:* Re: outputing html****
>
> ** **
>
> If the html is not well formed (no valid xml) and you don't need to
> transform it, you can also do****
>
> <map:match pattern="somepattern"> <!-- e.g. "*.html" -->****
>
>   <map:read src="somePath"/> <!-- e.g. 'static/html/{1}.html' -->****
>
> </map:match>****
>
> On 14 November 2011 20:57, Robby Pelssers <Robby.Pelssers@nxp.com> wrote:*
> ***
>
> <map:match pattern="somepattern">  <!-- e.g. '*.html'
>   <map:generate src="somePath"/> <!-- e.g. 'static/html/{1}.html'
>   <map:serialize type="html"/>  <-- or xhtml-->
> </map:match>
>
> Kind regards,
> Robby****
>
>
> -----Original Message-----
> From: Blanco, Jose [mailto:blancoj@umich.edu]
> Sent: Monday, November 14, 2011 8:55 PM
> To: users@cocoon.apache.org
> Subject: outputing html
>
> I think this is a very simple question.  I have an html page I would like
> cocoon to output.  So I'm thinking all I have to do is point to the
> location of the html page and have it serialize an html page out, but I'm
> not sure of the syntax to do this.  There is no xslt involved.   Any
> suggestions?
>
> Thank you!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org****
>
> ** **
>

Mime
View raw message