cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Breitsprecher>
Subject Bug in XInclude transformer?
Date Tue, 05 Apr 2005 09:11:47 GMT
Hi all,

I think I found a bug in Cocoon's XInclude transformer. Try this pipeline:

<map:match pattern="test">
   <map:generate src="test.xml" />
   <map:transform type="xinclude" />
   <map:serialize type="xml" />

whith test.xml containing:

<?xml version="1.0" encoding="utf-8" ?>
<root xmlns:xi="">
   <xi:include href="this_file_does_not_exist.xml">
       <element>This should be here if the file was not found</element>

With all cocoon versions I tested (2.1.4,, 2.1.6, SVN head) this 
pipeline gives me an unbalanced output if this_file_does_not_exist.xml 
doesn't exist.

I have prepared a patch against the current SVN version and am ready to 
file a bug if no-one objects :-)



View raw message