cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
Subject RE: Unwanted tab characters appearing in output after 2.1.6 upgrade [SOLVED]
Date Thu, 23 Dec 2004 06:12:44 GMT
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. &pound;
instead of £ - good for Mac IE), but, these characters include &apos;
which IE renders as &apos;, 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, &#9;
>  
> 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>&#9;
>     <orderByDistParams>
>       <sourceLocation>
> &#9;
> &#9;
> &#9;
> &#9;    <spotLocation>
> &#9;      <coordinate>
> &#9;&#9;<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


Mime
View raw message