Hi,

using the cinclude or the xinclude transformer
i get everytime the comments from the source
documents DTD included. This results in ca.
114 kB extra with the DocBook DTD.

Although I've not tried to reproduce bug #5973 and
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102507582917917&w=2
this may be similar problems.

The testcase:
   tomcat 4.0.4 (was also with 4.0.1)
   cocoon 2.0.3 from cvs (ca. 23.05.2002)+ saxon/xerces

Directory structure:
cocoon/
   mount/
     dtdcomments/
       sitemap.xmap
       test.xml
       test2.xml
       test3.xml
       dtd/ (directory with DocBook DTD whitin)

TIA, Sven.

<?xml version="1.0" encoding="ISO-8859-1"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
	<!-- =========================== Components ================================ -->
	<map:components>
		<map:generators default="file"/>
		<map:transformers default="xslt" />
		<map:readers default="resource"/>
		<map:serializers default="html"/>
		<map:selectors default="browser"/>
		<map:matchers default="wildcard"/>
	</map:components>
	<!-- =========================== Pipelines ================================= -->
	<map:pipelines>
	<!-- =========================== test ================================= -->
		<map:pipeline>
<!-- Here i get the expected result -->
			<map:match pattern="testcase1.xml">
				<map:generate src="test.xml"/>
				<map:serialize type="xml"/>
			</map:match>
<!-- Here i have the comments from within the dtd -->
			<map:match pattern="testcase2.xml">
				<map:generate src="test2.xml"/>
				<map:transform type="xinclude"/>
				<map:serialize type="xml"/>
			</map:match>
<!-- Here i have also the comments from within the dtd -->
			<map:match pattern="testcase3.xml">
				<map:generate src="test3.xml"/>
				<map:transform type="cinclude"/>
				<map:serialize type="xml"/>
			</map:match>
		</map:pipeline> 
	</map:pipelines>
</map:sitemap>
<!-- end of file -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "dtd/docbookx.dtd">
<article>
	<title>A stupid example</title>
	<para>This is only a test file.</para>
</article>
<?xml version="1.0" encoding="UTF-8"?>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"; href="test.xml" />
<?xml version="1.0" encoding="UTF-8"?>
<ci:include xmlns:ci="http://apache.org/cocoon/include/1.0"; src="test.xml" /> 
---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to