You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2004/07/08 14:45:11 UTC
indetation in the serializers
I all,
I'd like to serialize my document without indentation so I define my xml
serializer :
<map:serializer logger="sitemap.serializer.xml" mime-type="text/xml"
name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
<encoding>UTF-8</encoding>
<indent>no</indent> --> does not work
<doctype-system>TEST</doctype-system>
</map:serializer>
ALl is working but the indentation, why that ?
--
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: indetation in the serializers
Posted by Lionel Crine <cr...@4dconcept.fr>.
Itis an idea.
Thanks
J.Pietschmann wrote:
> Lionel Crine wrote:
>
>> So how can I remove the white spaces coming from my xsp (which creates
>> an xml document).
>
>
> Insert an XSL copy-through transformation using
> strip-space for the appropriate elements and/or cusotm
> templates augmenting the copy-through. You can also
> add this to an existing XSLT.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
Lionel CRINE
Ingénieur Systèmes Documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: indetation in the serializers
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Lionel Crine wrote:
> So how can I remove the white spaces coming from my xsp (which creates
> an xml document).
Insert an XSL copy-through transformation using
strip-space for the appropriate elements and/or cusotm
templates augmenting the copy-through. You can also
add this to an existing XSLT.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: indetation in the serializers
Posted by Lionel Crine <cr...@4dconcept.fr>.
I see.
So how can I remove the white spaces coming from my xsp (which creates
an xml document).
Thanks.
Joerg Heinicke wrote:
> On 08.07.2004 14:45, Lionel Crine wrote:
>
>> I all,
>>
>> I'd like to serialize my document without indentation so I define my
>> xml serializer :
>>
>> <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml"
>> name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
>> <encoding>UTF-8</encoding>
>> <indent>no</indent> --> does not work
>> <doctype-system>TEST</doctype-system>
>> </map:serializer>
>>
>> ALl is working but the indentation, why that ?
>
>
> How does the output look like? indent=no does not mean that whitespace
> will be removed, it will only be not added.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: indetation in the serializers
Posted by Joerg Heinicke <jo...@gmx.de>.
On 08.07.2004 14:45, Lionel Crine wrote:
> I all,
>
> I'd like to serialize my document without indentation so I define my xml
> serializer :
>
> <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml"
> name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
> <encoding>UTF-8</encoding>
> <indent>no</indent> --> does not work
> <doctype-system>TEST</doctype-system>
> </map:serializer>
>
> ALl is working but the indentation, why that ?
How does the output look like? indent=no does not mean that whitespace
will be removed, it will only be not added.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: indetation in the serializers
Posted by Stephan Coboos <cr...@gmx.net>.
Lionel Crine wrote:
> I all,
>
> I'd like to serialize my document without indentation so I define my
> xml serializer :
>
> <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml"
> name="xml" src="org.apache.cocoon.serialization.XMLSerializer">
> <encoding>UTF-8</encoding>
> <indent>no</indent> --> does not work
> <doctype-system>TEST</doctype-system>
> </map:serializer>
>
> ALl is working but the indentation, why that ?
>
Seems to be a bug. Please post it on the dev-list: dev@cocoon.apache.org
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org