You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Hunsberger, Peter" <Pe...@stjude.org> on 2003/04/05 00:40:14 UTC

Text serializer broken in 2.0.4 ?

I've got a large XSLT that dumps out a bunch of stuff for serialization to
text.  If I wrap the text with a start and end element and run it through
the XML serializer everything runs fine.  If I substitute the text
serializer I get no output.  A little bit of debugging shows that the start
document and end document are never called.  I've tested this with Xalan
2.4.1 and Saxon and with commenting out the namespace hack: no difference.

The work around seems to be to wrap the text with pseudo XML eg:

	<hack>
	Generated text
	</hack>

But I believe this shouldn't be necessary?  Strangely enough when I do this,
the "hack" elements are not output and everything works fine. Anyone have
any ideas where the problem might lie?

The rest of the environment is Win 2K, Jboss 3.0.4 Tomcat 4.1.12 JDK
4.0.1...

Peter Hunsberger
 

Re: Text serializer broken in 2.0.4 ?

Posted by Vadim Gritsenko <va...@verizon.net>.
Berin Loritsch wrote:

> Hunsberger, Peter wrote:
>
>> I've got a large XSLT that dumps out a bunch of stuff for 
>> serialization to
>> text.  If I wrap the text with a start and end element and run it 
>> through
>> the XML serializer everything runs fine.  If I substitute the text
>> serializer I get no output.  A little bit of debugging shows that the 
>> start
>> document and end document are never called.  I've tested this with Xalan
>> 2.4.1 and Saxon and with commenting out the namespace hack: no 
>> difference.
>>
>> The work around seems to be to wrap the text with pseudo XML eg:
>>
>>     <hack>
>>     Generated text
>>     </hack>
>
>
> That is a common requirement for XML parsers.
>
>>
>> But I believe this shouldn't be necessary?  Strangely enough when I 
>> do this,
>> the "hack" elements are not output and everything works fine. Anyone 
>> have
>> any ideas where the problem might lie? 
>

Related: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10242


>> The rest of the environment is Win 2K, Jboss 3.0.4 Tomcat 4.1.12 JDK
>> 4.0.1...
>>
>> Peter Hunsberger  
>



Re: Text serializer broken in 2.0.4 ?

Posted by Berin Loritsch <bl...@apache.org>.
Hunsberger, Peter wrote:
> I've got a large XSLT that dumps out a bunch of stuff for serialization to
> text.  If I wrap the text with a start and end element and run it through
> the XML serializer everything runs fine.  If I substitute the text
> serializer I get no output.  A little bit of debugging shows that the start
> document and end document are never called.  I've tested this with Xalan
> 2.4.1 and Saxon and with commenting out the namespace hack: no difference.
> 
> The work around seems to be to wrap the text with pseudo XML eg:
> 
> 	<hack>
> 	Generated text
> 	</hack>

That is a common requirement for XML parsers.

> 
> But I believe this shouldn't be necessary?  Strangely enough when I do this,
> the "hack" elements are not output and everything works fine. Anyone have
> any ideas where the problem might lie?
> 
> The rest of the environment is Win 2K, Jboss 3.0.4 Tomcat 4.1.12 JDK
> 4.0.1...
> 
> Peter Hunsberger
>  
> 
>