You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/01/07 12:29:02 UTC

Re: Choosing the doctype of an xml serialization within pipeline at run-time

For the moment it is not possible to pass parameters to serializers.

See threads
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
and
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2

to give you an idea what you might be able to do.


Pierre Attar wrote:

> Hi,
> 
> I need to decide, straight in a pipeline, which doctype to apply to an 
> xml serialization: it is impossible for me to know it before.
> 
> Therefore, I would like to use XML serializer parameters BUT within the 
> pipeline. Something like :
> 
>         <map:serialize type="xml">
>                 <map:parameter name="doctype-public" 
> value="{request-attr:doctype-public}"/>
>                 <map:parameter name="doctype-system" 
> value="{request-attr:doctype-system}"/>
>         </map:serialize>
> 
> Does someone knows how to do that ? Do I need to write my own serializer 
> or is it possible to use something yet existing ?
> 
> Thanks,
> 
> Pierre


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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 20:21, Pierre Attar wrote:

> Bythe way,  where are the sources of the SGVSerializer ? I did not found 
> them in the 2.3 distribution.

http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/batik/java/org/apache/cocoon/serialization/SVGSerializer.java

Joerg


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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Pierre Attar <pa...@tireme.fr>.
Can you please tell us what are your thougts, as soon as you got time to 
have a look ?

Bythe way,  where are the sources of the SGVSerializer ? I did not found 
them in the 2.3 distribution.

Thanks a lot, Pierre
At 13:03 07/01/2004, you wrote:
>For the sake of getting a better grip on the cocoon internals, I'll have a 
>look at it this week.



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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Jorg Heymans <jh...@domek.be>.
For the sake of getting a better grip on the cocoon internals, I'll have 
a look at it this week.

Joerg Heinicke wrote:
> On 07.01.2004 12:52, Jorg Heymans wrote:
> 
>> Sorry didn't see that last update.
>> With a bit of work this should be very much possible then from the 
>> looks of it, cool. Will this get included in the 2.1.x branch anytime 
>> soon? (i guess the answer is : as soon as someone writes the patch)
> 
> 
> I like this answer :) I think the first one needing such a feature will 
> patch the serializer and afterwards it can be added to CVS. The patch is 
> not that difficult, for the SVGSerializer it is already done:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25100.
> 
> Joerg
> 
>> Joerg Heinicke wrote:
>>
>>>> For the moment it is not possible to pass parameters to serializers.
>>>>
>>>> See threads
>>>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>>>> and
>>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>>>
>>>> to give you an idea what you might be able to do.
>>>
>>>
>>>
>>>
>>> But the mail 
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 
>>> in the second thread states exactly the contrary, isn't it? 
>>> Parameterized serializers should be possible now, you only have to 
>>> write/patch it yourself.
>>>
>>> Joerg


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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 12:52, Jorg Heymans wrote:

> Sorry didn't see that last update.
> With a bit of work this should be very much possible then from the looks 
> of it, cool. Will this get included in the 2.1.x branch anytime soon? (i 
> guess the answer is : as soon as someone writes the patch)

I like this answer :) I think the first one needing such a feature will 
patch the serializer and afterwards it can be added to CVS. The patch is 
not that difficult, for the SVGSerializer it is already done:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25100.

Joerg

> Joerg Heinicke wrote:
> 
>>> For the moment it is not possible to pass parameters to serializers.
>>>
>>> See threads
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>>> and
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>>
>>> to give you an idea what you might be able to do.
>>
>>
>>
>> But the mail 
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 
>> in the second thread states exactly the contrary, isn't it? 
>> Parameterized serializers should be possible now, you only have to 
>> write/patch it yourself.
>>
>> Joerg


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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Jorg Heymans <jh...@domek.be>.
Sorry didn't see that last update.
With a bit of work this should be very much possible then from the looks 
of it, cool. Will this get included in the 2.1.x branch anytime soon? (i 
guess the answer is : as soon as someone writes the patch)

Thanks for pointing that out.
Jorg


Joerg Heinicke wrote:

> On 07.01.2004 12:29, Jorg Heymans wrote:
> 
>> For the moment it is not possible to pass parameters to serializers.
>>
>> See threads
>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>> and
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>
>> to give you an idea what you might be able to do.
> 
> 
> But the mail 
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 in 
> the second thread states exactly the contrary, isn't it? Parameterized 
> serializers should be possible now, you only have to write/patch it 
> yourself.
> 
> Joerg
> 
>> Pierre Attar wrote:
>>
>>> Hi,
>>>
>>> I need to decide, straight in a pipeline, which doctype to apply to 
>>> an xml serialization: it is impossible for me to know it before.
>>>
>>> Therefore, I would like to use XML serializer parameters BUT within 
>>> the pipeline. Something like :
>>>
>>>         <map:serialize type="xml">
>>>                 <map:parameter name="doctype-public" 
>>> value="{request-attr:doctype-public}"/>
>>>                 <map:parameter name="doctype-system" 
>>> value="{request-attr:doctype-system}"/>
>>>         </map:serialize>
>>>
>>> Does someone knows how to do that ? Do I need to write my own 
>>> serializer or is it possible to use something yet existing ?
>>>
>>> Thanks,
>>>
>>> Pierre


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


Re: Choosing the doctype of an xml serialization within pipeline at run-time

Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 12:29, Jorg Heymans wrote:

> For the moment it is not possible to pass parameters to serializers.
> 
> See threads
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
> and
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
> 
> to give you an idea what you might be able to do.

But the mail 
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 in 
the second thread states exactly the contrary, isn't it? Parameterized 
serializers should be possible now, you only have to write/patch it 
yourself.

Joerg

> Pierre Attar wrote:
> 
>> Hi,
>>
>> I need to decide, straight in a pipeline, which doctype to apply to an 
>> xml serialization: it is impossible for me to know it before.
>>
>> Therefore, I would like to use XML serializer parameters BUT within 
>> the pipeline. Something like :
>>
>>         <map:serialize type="xml">
>>                 <map:parameter name="doctype-public" 
>> value="{request-attr:doctype-public}"/>
>>                 <map:parameter name="doctype-system" 
>> value="{request-attr:doctype-system}"/>
>>         </map:serialize>
>>
>> Does someone knows how to do that ? Do I need to write my own 
>> serializer or is it possible to use something yet existing ?
>>
>> Thanks,
>>
>> Pierre


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