You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2000/07/31 15:22:41 UTC

C2: Bug in sitemap/ResourcePipeline.java

The current cvs repository of C2 has the following bug in src/org/apache/cocoon/sitemap/ResourcePipeline.java:

The configuration of the different compontents (reader, serializer and transformer) didn't get the ComponentManager. Instead the generator did get it.

Here is the diff:

Index: xml-cocoon/src/org/apache/cocoon/sitemap/ResourcePipeline.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePipeline.java,v
retrieving revision 1.1.2.9
diff -r1.1.2.9 ResourcePipeline.java
82,84c82,84
<         if (this.reader instanceof Composer) 
<             ((Composer)this.generator).setComponentManager (manager);
<         if (this.reader instanceof Configurable) 
---
>         if (this.reader instanceof Composer)
>             ((Composer)this.reader).setComponentManager (manager);
>         if (this.reader instanceof Configurable)
101,103c101,103
<         if (this.serializer instanceof Composer) 
<             ((Composer)this.generator).setComponentManager (manager);
<         if (this.serializer instanceof Configurable) 
---
>         if (this.serializer instanceof Composer)
>             ((Composer)this.serializer).setComponentManager (manager);
>         if (this.serializer instanceof Configurable)
113,115c113,115
<         if (transfmr instanceof Composer) 
<             ((Composer)this.generator).setComponentManager (manager);
<         if (transfmr instanceof Configurable) 
---
>         if (transfmr instanceof Composer)
>             ((Composer)transfmr).setComponentManager (manager);
>         if (transfmr instanceof Configurable)

Perhaps someone can distribute these changes into the cvs.

Regards
Carsten Ziegeler

====================================================
s&n AG               Tel.    : +49 (5251) 1581-49
netBank solutions    Fax     : +49 (5251) 1581-71
Klingenderstr. 5     Internet: http://www.SundN.de
D-33100 Paderborn    <ma...@SundN.de>
====================================================

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...

Re: Extending XMLSerializer

Posted by Giacomo Pati <Gi...@pwr.ch>.
Matthew Langham wrote:
> 
> Hi,
> 
> if we want to generate WML via the XMLSerializer then you cannot pass the
> following (necessary) parameters via the Sitemap.

Well, the sitemap-working-draft.xmap has an example how to pass these
parameters to a Serializer. Look at the wap serializer in the components
section.

> Taken from C1.properties
> >>
> formatter.text/wml.doctype-public = -//WAPFORUM//DTD WML 1.1//EN
> formatter.text/wml.doctype-system = http://www.wapforum.org/DTD/wml_1.1.xml
> <<
> 
> At the moment you can only pass in the MIME-TYPE.
> 
> Is there a documented strategy on how this will be done in C2? If not then
> we would be willing to integrate this and supply a patch [We need this!].

Maybe the current XMLSerializer doesn't take the Configurations passed
to it the way you want it. No offense to patch'em :)

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Extending XMLSerializer

Posted by Matthew Langham <ml...@sundn.de>.
Hi,

if we want to generate WML via the XMLSerializer then you cannot pass the
following (necessary) parameters via the Sitemap.

Taken from C1.properties
>>
formatter.text/wml.doctype-public = -//WAPFORUM//DTD WML 1.1//EN
formatter.text/wml.doctype-system = http://www.wapforum.org/DTD/wml_1.1.xml
<<

At the moment you can only pass in the MIME-TYPE.

Is there a documented strategy on how this will be done in C2? If not then
we would be willing to integrate this and supply a patch [We need this!].

Matthew Langham / Carsten Ziegeler

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
=================================================================

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...