Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B673957B for ; Mon, 14 Nov 2011 20:45:08 +0000 (UTC) Received: (qmail 45913 invoked by uid 500); 14 Nov 2011 20:45:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 45849 invoked by uid 500); 14 Nov 2011 20:45:07 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 45842 invoked by uid 99); 14 Nov 2011 20:45:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 20:45:07 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [57.67.164.69] (HELO be1ssnxpe1.nxp.com) (57.67.164.69) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 20:44:58 +0000 Received: from eu1rdcrdc1vw040.exi.nxp.com ([134.27.176.148]) by be1ssnxpe1.nxp.com (8.14.4/8.14.4) with ESMTP id pAEKicQj025118 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Mon, 14 Nov 2011 21:44:38 +0100 Received: from eu1rdcrdc1wx032.exi.nxp.com ([134.27.179.186]) by eu1rdcrdc1vw040.exi.nxp.com ([134.27.176.148]) with mapi; Mon, 14 Nov 2011 21:44:38 +0100 From: Robby Pelssers To: "users@cocoon.apache.org" Date: Mon, 14 Nov 2011 21:44:37 +0100 Subject: RE: outputing html Thread-Topic: outputing html Thread-Index: AcyjBvOPK3wc+LfFSQCwmLAXCgFlKgAAG5jQAAqw5QAAADXxAAAKR4kwABPfuKAAJ3HcIA== Message-ID: <78B923726E7D59429936580CF127E943A1EBEC81CE@eu1rdcrdc1wx032.exi.nxp.com> References: <24384F6F63A19146A9B29EB6592FAF3E1E7D77E8@its-embx-01.adsroot.itcs.umich.edu> <78B923726E7D59429936580CF127E943A1EBEC8108@eu1rdcrdc1wx032.exi.nxp.com> <78B923726E7D59429936580CF127E943A1EBEC8131@eu1rdcrdc1wx032.exi.nxp.com> <24384F6F63A19146A9B29EB6592FAF3E1E7D782E@its-embx-01.adsroot.itcs.umich.edu> <24384F6F63A19146A9B29EB6592FAF3E1E7D7856@its-embx-01.adsroot.itcs.umich.edu> In-Reply-To: <24384F6F63A19146A9B29EB6592FAF3E1E7D7856@its-embx-01.adsroot.itcs.umich.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_78B923726E7D59429936580CF127E943A1EBEC81CEeu1rdcrdc1wx0_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110,1.0.211,0.0.0000 definitions=2011-11-14_05:2011-11-14,2011-11-14,1970-01-01 signatures=0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_78B923726E7D59429936580CF127E943A1EBEC81CEeu1rdcrdc1wx0_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Jose, First of all, let's figure out what version of Cocoon you're using. Secondl= y, assuming you are using Cocoon 2.2 and you have some block (let's call th= is 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 je= tty:run? Then the URL would be like http://localhost:8888/block1/about/index.html So far so good? Robby From: Blanco, Jose [mailto:blancoj@umich.edu] Sent: Monday, November 14, 2011 9:34 PM To: users@cocoon.apache.org Subject: RE: outputing html I tried using: And I'm getting the error: org.apache.cocoon.ProcessingException: Generator already set. Cannot use re= ader 'resource' - 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 (fi= le repository, database, ..) we can give some extra guidance or tips and t= ricks. Just mentioning this because the sample I gave would assume the htm= l 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 transfo= rm it, you can also do On 14 November 2011 20:57, Robby Pelssers > wrote: 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 c= ocoon 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 --_000_78B923726E7D59429936580CF127E943A1EBEC81CEeu1rdcrdc1wx0_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Jose,<= o:p>

 

First of all, let’s figure out what ver= sion 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 th= e URL would be  like http://localhost:8888/block1/about/index.html

 

So far so good?

 

Robby

 

From: Blanco, Jose [mailto:blancoj@umich.edu] Sent: Monday, November 14, 2011 9:34 PM
To: users@cocoon.= apache.org
Subject: RE: outputing html

 

I tried using:

&nbs= p;

    &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;     <map:match pattern=3D"about/index.htm= l">

   &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;          <map:read sr= c=3D"static/about/index.html"/>

         &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p; </map:match>

 

And I’m getting t= he error:

 

org.apache.cocoon.ProcessingException: Gen= erator already set. Cannot use reader 'resource'
<map:read> - context:/resource://aspects/ArtifactBrowser/sitemap.xmap - 152:48

 

From: Blanco, Jose [mailto:blancoj@um= ich.edu]
Sent: Monday, November 14, 2011 3:14 PM
To: u= sers@cocoon.apache.org
Subject: RE: outputing html

 

Thank you for all the suggestions.  I’m going to t= ry to put the html in the static dir and see if it works.

 

-Jose

 

From: Robby Pels= sers [mailto:Robby.Pelssers@nxp.com]
Sent: Monday, November 14, = 2011 3:08 PM
To: users@cocoon.apache.org
Subject: RE: o= utputing html

&n= bsp;

Yep. That would also be possible.=

 =

Actually,  if you tell us a bit more h= ow 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 web= app and stored below the COB-INF folder of that cocoon block. That would no= t be really advisable of course. 

 

Robb= y

 =

From: Jasha Joachimsthal [mailto:j.joachims= thal@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 ne= ed to transform it, you can also do

<map:match pattern=3D"somepattern"> <!-- e.g. "*.h= tml" -->

  <m= ap:read src=3D"somePath"/> <!-- e.g. 'static/html/{1}.= html' -->

</map:match>

O= n 14 November 2011 20:57, Robby Pelssers <Robby.Pelssers@nxp.com> wrote:

<map:match pattern=3D"somepattern">  <!--= e.g. '*.html'
  <map:generate src=3D"somePath"/> &= lt;!-- e.g. 'static/html/{1}.html'
  <map:serialize type=3D"= ;html"/>  <-- or xhtml-->
</map:match>

K= ind regards,
Robby


-----Origin= al Message-----
From: Blanco, Jose [mailto:blancoj@umich.edu]
Sent: Monday, November 14, 2011 8:55 PMTo: 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 thin= king 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. &nb= sp;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.ap= ache.org


---------------------------------------------------= ------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For ad= ditional commands, e-mail: = users-help@cocoon.apache.org

 

= --_000_78B923726E7D59429936580CF127E943A1EBEC81CEeu1rdcrdc1wx0_--