I have problems reading xhtml-files. The problem occours when I have a DTD specified. I tried this just to see what is going on:
 
<map:match pattern="**.xml">
      <map:generate src="" />
      <map:serialize type="xml"/>
</map:match>
 
 
I then request test.xml and I have a file like this in documents/test.html:
 
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
</head>
<body >
test
</body>
</html>
 
The generated output is:
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"<!--================== Imported Names ====================================--><!-- media type, as per [RFC2045] --><!-- comma-separated list of media types, as per [RFC2045] --><!-- a character
 
and so on. All the comments in the DTD is included. And its one > to much. So the output is not accepted as xml.
 
Am I doing something wrong? Or is it a bug?  I am a newbie on cocoon...
 
Thanks.
Joel
 

Reply via email to