I think I may have put this in the wrong sitemap file. I have to finish something else now, but will try putting this in the other sitemap file tomorrow and see how it goes.
Thank you! Jose From: Robby Pelssers [mailto:[email protected]] Sent: Monday, November 14, 2011 3:45 PM To: [email protected] Subject: RE: outputing html Hi Jose, First of all, let's figure out what version of Cocoon you're using. Secondly, assuming you are using Cocoon 2.2 and you have some block (let's call this block 1), did you create the subfolders 'static/about' below the COB-INF folder? How did you invoke the match pattern? Did you start the block using mvn jetty:run? Then the URL would be like http://localhost:8888/block1/about/index.html So far so good? Robby From: Blanco, Jose [mailto:[email protected]] Sent: Monday, November 14, 2011 9:34 PM To: [email protected] Subject: RE: outputing html 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:[email protected]] Sent: Monday, November 14, 2011 3:14 PM To: [email protected] 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:[email protected]] Sent: Monday, November 14, 2011 3:08 PM To: [email protected] 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:[email protected]] Sent: Monday, November 14, 2011 9:02 PM To: [email protected] 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 <[email protected]<mailto:[email protected]>> 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:[email protected]<mailto:[email protected]>] Sent: Monday, November 14, 2011 8:55 PM To: [email protected]<mailto:[email protected]> 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: [email protected]<mailto:[email protected]> For additional commands, e-mail: [email protected]<mailto:[email protected]> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected]<mailto:[email protected]> For additional commands, e-mail: [email protected]<mailto:[email protected]>
