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=24844>. 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=24844 XMLByteStreamCompiler.getSAXFragment() shouldn't return whole array Summary: XMLByteStreamCompiler.getSAXFragment() shouldn't return whole array Product: Cocoon 2 Version: Current CVS 2.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] XMLByteStreamCompiler.getSAXFragment() has been changed recently to return the whole array instead of creating a new array trimmed to the appropriate length. This causes problems for (at least) XMLByteStreamInterpreter which spews as many startDocument() events as there are zeroes at the end of the array. This causes Saxon to throw an exception. I first noticed the problem with a transform like this: <map:transform src="cocoon:/generate-page"> <map:parameter name="dn" value="{request-param:dn}" /> </map:transform This still works fine though (???): <map:match pattern="test"> <map:generate src="test.xml" /> <map:transform src="test.xslt" /> <map:serialize /> </map:match>