DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10242>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10242 Text silently dropped Summary: Text silently dropped Product: Cocoon 2 Version: 2.0.3 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the following pipeline <map:match pattern="test/text.txt"> <map:generate src="text.xml"/> <map:transform src="text.xsl"/> <map:serialize type="text"/> </map:match> With some simple XML: <?xml version="1.0"?> <root> test text </root> and XSL, which simply copies text through: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> </xsl:stylesheet> The browser gets a zero size result, because the text is dropped while being transported from the transformer to the serializer. This happens with Saxon 6.5.2, don't know how this is handled by Xalan. The workaround is to enclose the transformation result in an element: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <text> <xsl:apply-templates/> </text> </xsl:template> </xsl:stylesheet> This problem could be rather confusing when proting text producing transformations from other environments. If possible, character() SAX events outside any elements should generate log entries. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]