You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Adam Ratcliffe <ad...@mrigitech.com> on 2004/12/23 07:12:44 UTC
RE: Unwanted tab characters appearing in output after 2.1.6 upgrade [SOLVED]
Hi Mark
Thanks for pointing me in the right direction, the XSLT processor. The 2.1.6
distro includes a development
release of Xalan 2.6.1, I switched back to the 2.6.0 Xalan release included
with Cocoon 2.1.5 which doesn't output
the tabs.
I'll take a look at Saxon anyway it sounds like it could offer some
performance advantages.
Cheers
Adam
-----Original Message-----
From: Mark Leicester [mailto:mark.leicester@efurbishment.com]
Sent: Thursday, 23 December 2004 1:05 p.m.
To: users@cocoon.apache.org
Subject: Re: Unwanted tab characters appearing in output after 2.1.6
upgrade
Hi Adam,
I've found two ways:
1. Use Saxon as your XSLT processor: http://wiki.apache.org/cocoon/Saxon
2. Use the new XHTML serializer instead (see the
cocoon-serializers-block). There is not a lot of documentation on this,
and I did experience some issues with XSLTs that used xsl:copy (an
error relating to the XML namespace???). It has the advantage of
serializing a lot of special characters as entities (i.e. £
instead of £ - good for Mac IE), but, these characters include '
which IE renders as ', not '.
Hope this helps,
Mark
On 22 Dec 2004, at 23:09, Adam Ratcliffe wrote:
> Hi,
>
> I've just upgraded from Cocoon 2.1.5 to 2.1.6. I now have a problem
> with the output of a pipeline that uses the XML serializer including
> tab character
> references, 	
>
> The pipeline that generates the output looks like this:
>
> <map:match pattern="locationserver/*.jx">
> <map:generate type="jx" src="xml/locationserver/{1}.jx"/>
> <map:serialize type="xml"/>
> </map:match>
>
> The pipeline is called from within my flowscript in this function:
>
> var template = "locationserver/RouteQuery.jx";
> var output = new ByteArrayOutputStream();
> cocoon.processPipelineTo(template, {"mapContext" : mapContext},
> output);
>
> and an excerpt of what comes out of the pipeline is this:
>
> <?xml version="1.0" encoding="ISO-8859-1"?><ls:operation
> xmlns:ls="LSSchema"
> xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
> <operationName>OrdbyDist</operationName>
> <parameters>	
> <orderByDistParams>
> <sourceLocation>
> 	
> 	
> 	
> 	 <spotLocation>
> 	 <coordinate>
> 		<point>
>
> Any ideas on how to exclude these character references from the output
> would be much appreciated.
>
> Cheers
> Adam
>
>
---------------------------------------------------------------------
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