You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sonny Sukumar <ah...@hotmail.com> on 2003/06/22 00:08:28 UTC
simple question
Hi guys,
I'm trying to use the <xsl:output> element in my logicsheet (for an
accompanying XSP) to remove the XML declaration (the <?xml version="1.0"?>)
from my output doc. I just put <xsl:output method="xml"
omit-xml-declaration="yes"/> right inside my opening <xsl:stylesheet> tag.
However, in the processing of the stylesheet itself, this
ProcessingException is thrown:
org.apache.cocoon.ProcessingException: Exception during processing of
file:/jakarta-tomcat-4.1.12/webapps/cocoon/mysite/stylesheets/my_logicsheet.xsl:
java.io.UTFDataFormatException: invalid byte 1 of 1-byte UTF-8 sequence
(0xa0)
I also tried adding the 'encoding="UTF-8"' attribute/value to the xsl:output
tag, but I got the same error.
Can anyone shed some light on this for me?
Thanks,
Sonny
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
RE: simple question
Posted by Geoff Howard <co...@leverageweb.com>.
you have to do this in the setup of the serializer in sitemap.xmap. See
the docs for details. Remember if you need some pipelines to use
different settings, you can set up the same serializer class under
different pipeline shortcut names with different configs. You may
be able to do this per-pipeline inside <map:serialize> but I don't
know about that.
HTH,
Geoff Howard
> -----Original Message-----
> From: Sonny Sukumar [mailto:ahimsadesi@hotmail.com]
> Sent: Saturday, June 21, 2003 6:08 PM
> To: cocoon-users@xml.apache.org
> Subject: simple question
>
>
>
> Hi guys,
>
> I'm trying to use the <xsl:output> element in my logicsheet (for an
> accompanying XSP) to remove the XML declaration (the <?xml
> version="1.0"?>)
> from my output doc. I just put <xsl:output method="xml"
> omit-xml-declaration="yes"/> right inside my opening <xsl:stylesheet> tag.
>
> However, in the processing of the stylesheet itself, this
> ProcessingException is thrown:
>
> org.apache.cocoon.ProcessingException: Exception during processing of
> file:/jakarta-tomcat-4.1.12/webapps/cocoon/mysite/stylesheets/my_l
> ogicsheet.xsl:
> java.io.UTFDataFormatException: invalid byte 1 of 1-byte UTF-8 sequence
> (0xa0)
>
> I also tried adding the 'encoding="UTF-8"' attribute/value to the
> xsl:output
> tag, but I got the same error.
>
> Can anyone shed some light on this for me?
>
> Thanks,
>
> Sonny
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org