You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joerg Heinicke <jo...@gmx.de> on 2002/11/18 19:18:28 UTC

TextSerializer (was: XSLT processor problems)

Some time ago there was a mail according some problems with the 
TextSerializer, but I didn't find it. But there was said, because of 
some other problems with Xalan, the configuration of the text serializer 
was deactivated. Can somebody confirm this?

Oskar Casquero wrote:
> Hello,
>  
> I have done a simple pipeline in cocoon that applies some 
> transformations to an xml document and obtains a text document:
>  
> <map:match pattern="MAST">
>   <map:generate src="xmldocuments/Robot_Teleoperado.xml"/>
>   <map:transform src="stylesheets/xml2txt.xsl"/>
>   <map:serialize type="text"/>
> </map:match>
>  
> Depending on the cocoon version, the result is different:
>  
> 1) When the pipeline is included in cocoon 2.0.3 the result is the 
> expected one.
> 2) When the pipeline is included in cocoon 2.1-dev (not 
> updated), it losts the following transformation rule:
>     <xsl:output omit-xml-declaration="yes"/>
>     despite I have selected xalan as the xslt processor (the default 
> xslt processor in cocoon 2.1-dev is xsltc).
> 3) When the pipeline is included in cocoon 2.1-dev (updated), the 
> previous transformation rule and the following one are not applied:
>     <xsl:variable name="pe"><![CDATA[>]]></xsl:variable>
>     <xsl:value-of disable-output-escaping="yes" select="$pe"/>

Normal behaviour in my eyes. disable-output-escaping is bad for 
pipelining. The result XML must be maybe reparsed, so it was deactived 
completely. But I heard that it work at least in a meantime.

Regards,

Joerg


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: TextSerializer (was: XSLT processor problems)

Posted by Frank Taffelt <fr...@interface-business.de>.

> Some time ago there was a mail according some problems with the 
> TextSerializer, but I didn't find it. But there was said, because of 
> some other problems with Xalan, the configuration of the text serializer 
> was deactivated. Can somebody confirm this?

yes, see my previous posting on this topic:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=103598703627408&w=2

this seems to be a long time bug in cocoon2.1-dev  ;-)

hth,
Frank Taffelt

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>