You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Johannes Hoechstaedter <j....@memocomp.de> on 2008/06/24 16:50:00 UTC

well formatted xhtml code

Hi,

when I serialize my output into html, cocoon produces well readable html 
source code. But when I switch to xhtml, then it puts everything in one 
line. Is this changeable?

cheers,
Johannes

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


Re: well formatted xhtml code

Posted by Johannes Hoechstaedter <j....@memocomp.de>.
ok, thank you. It woks.

cheers
Johannes

Jasha Joachimsthal schrieb:
> Then it's defined in a parent sitemap. On [1] you can find the
> configuration when org.apache.cocoon.serialization.XMLSerializer is used
> for XHTML. There is an (undocumented) parameter for this serializer:
> <indent>yes</indent> (or no if you want it as one line,.
>
> So you will have something like
> <map:sitemap>
>   <map:components>
>     <map:serializers>
>       <!-- here go all your serializer definitions -->
>     </map:serializers>
>   </map:components>
> </map:sitemap>
>
> [1] http://cocoon.apache.org/2.1/userdocs/xhtml-serializer.html
>
> Regards,
>
> Jasha Joachimsthal 
>
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
> San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> 94952-3329 +1 (707) 773-4646
>
>
>
>   
>> -----Original Message-----
>> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de] 
>> Sent: dinsdag 24 juni 2008 17:40
>> To: users@cocoon.apache.org
>> Subject: Re: well formatted xhtml code
>>
>> There are no serializers.
>>
>> Jasha Joachimsthal schrieb:
>>     
>>> Hi Johannes,
>>>
>>> Which class is used for the XHTML serialization (it's in 
>>> map:components/map:serializers)?
>>>
>>> Jasha Joachimsthal
>>>
>>> www.onehippo.com
>>> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam 
>>>       
>> +31(0)20-5224466 
>>     
>>> San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
>>> 94952-3329 +1 (707) 773-4646
>>>
>>>  
>>>
>>>   
>>>       
>>>> -----Original Message-----
>>>> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
>>>> Sent: dinsdag 24 juni 2008 16:50
>>>> To: users@cocoon.apache.org
>>>> Subject: well formatted xhtml code
>>>>
>>>> Hi,
>>>>
>>>> when I serialize my output into html, cocoon produces well 
>>>>         
>> readable 
>>     
>>>> html source code. But when I switch to xhtml, then it puts 
>>>>         
>> everything 
>>     
>>>> in one line. Is this changeable?
>>>>
>>>> cheers,
>>>> Johannes
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>>     
>>>> 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
>>>
>>>
>>>
>>>   
>>>       
>> ---------------------------------------------------------------------
>> 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
>
>
>
>   

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


RE: well formatted xhtml code

Posted by Jasha Joachimsthal <j....@onehippo.com>.
Then it's defined in a parent sitemap. On [1] you can find the
configuration when org.apache.cocoon.serialization.XMLSerializer is used
for XHTML. There is an (undocumented) parameter for this serializer:
<indent>yes</indent> (or no if you want it as one line,.

So you will have something like
<map:sitemap>
  <map:components>
    <map:serializers>
      <!-- here go all your serializer definitions -->
    </map:serializers>
  </map:components>
</map:sitemap>

[1] http://cocoon.apache.org/2.1/userdocs/xhtml-serializer.html

Regards,

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646



> -----Original Message-----
> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de] 
> Sent: dinsdag 24 juni 2008 17:40
> To: users@cocoon.apache.org
> Subject: Re: well formatted xhtml code
> 
> There are no serializers.
> 
> Jasha Joachimsthal schrieb:
> > Hi Johannes,
> >
> > Which class is used for the XHTML serialization (it's in 
> > map:components/map:serializers)?
> >
> > Jasha Joachimsthal
> >
> > www.onehippo.com
> > Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam 
> +31(0)20-5224466 
> > San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> > 94952-3329 +1 (707) 773-4646
> >
> >  
> >
> >   
> >> -----Original Message-----
> >> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de]
> >> Sent: dinsdag 24 juni 2008 16:50
> >> To: users@cocoon.apache.org
> >> Subject: well formatted xhtml code
> >>
> >> Hi,
> >>
> >> when I serialize my output into html, cocoon produces well 
> readable 
> >> html source code. But when I switch to xhtml, then it puts 
> everything 
> >> in one line. Is this changeable?
> >>
> >> cheers,
> >> Johannes
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
> >   
> 
> ---------------------------------------------------------------------
> 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


Cocoon22 - core.properties and modes with Tomcat

Posted by Hugh Sparks <hu...@csparks.com>.
How do I specify the operating mode when running cocoon under Tomcat?

I have a webapp that I built and tested with jetty.
It has some changes to core.properties file in:

src\main\resources\META_INF\cocoon\properties\dev\core.properties

I set the mode to "dev" in the POM for the maven-jetty-plugin:

    <configuration>
     ...
    <systemProperties>
        <systemProperty>
            <name>org.apache.cocoon.mode</name>
            <value>dev</value>
        </systemProperty>
    </systemProperties>

This works ok.

When I take the war file and deploy it under Tomcat, the core.properties 
under
the dev directory are ignored, but they work if I move them to a "prod" 
subdirectory
instead. In the deployed instance, the path is:

    WEB-INF\classes\META-INF\cocoon\properties\prod\core.properties

So the mode has evidently become "prod" instead of "dev".
How can I set this when running with Tomcat rather than jetty?

Thanks to all,

-Hugh Sparks, hugh@csparks.com




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


RCL vs Cocoon core.properties

Posted by Hugh Sparks <hu...@csparks.com>.
I see that the cocoon core.properties contain parameters:

    org.apache.cocoon.reloading
    org.apache.cocoon.reloading.sitemap
    org.apache.cocoon.reload-delay.sitemap
    org.apache.cocoon.reloading.config
    org.apache.cocoon.reloading.flow

These appear to work in a block created to run without the rcl webapp -
plain jetty or tomcat. But the rcl appears to do some of these same things,
such as reloading the sitemap. I'm a bit confused about when/why
each of these mechanisms should be used. Are they independant?
Why would a developer choose one or the other?

Thanks to all,

-Hugh Sparks, hugh@csparks.com




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


Re: Cocoon22 - core.properties and modes with Tomcat

Posted by Michel Erard <mi...@corix.ch>.
Hi Hugh, 

you can set the system property org.apache.cocoon.mode while startup 

-Dorg.apache.cocoon.mode=prod

Regards, 

Mike

Am Mittwoch, den 25.06.2008, 01:30 +0200 schrieb Hugh Sparks:
> org.apache.cocoon.mode

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


Re: well formatted xhtml code

Posted by Johannes Hoechstaedter <j....@memocomp.de>.
There are no serializers.

Jasha Joachimsthal schrieb:
> Hi Johannes,
>
> Which class is used for the XHTML serialization (it's in
> map:components/map:serializers)?
>
> Jasha Joachimsthal 
>
> www.onehippo.com
> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
> San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
> 94952-3329 +1 (707) 773-4646
>
>  
>
>   
>> -----Original Message-----
>> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de] 
>> Sent: dinsdag 24 juni 2008 16:50
>> To: users@cocoon.apache.org
>> Subject: well formatted xhtml code
>>
>> Hi,
>>
>> when I serialize my output into html, cocoon produces well 
>> readable html source code. But when I switch to xhtml, then 
>> it puts everything in one line. Is this changeable?
>>
>> cheers,
>> Johannes
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
>   

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


RE: well formatted xhtml code

Posted by Jasha Joachimsthal <j....@onehippo.com>.
Hi Johannes,

Which class is used for the XHTML serialization (it's in
map:components/map:serializers)?

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646

 

> -----Original Message-----
> From: Johannes Hoechstaedter [mailto:j.hoechstaedter@memocomp.de] 
> Sent: dinsdag 24 juni 2008 16:50
> To: users@cocoon.apache.org
> Subject: well formatted xhtml code
> 
> Hi,
> 
> when I serialize my output into html, cocoon produces well 
> readable html source code. But when I switch to xhtml, then 
> it puts everything in one line. Is this changeable?
> 
> cheers,
> Johannes
> 
> ---------------------------------------------------------------------
> 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