cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Ekstrand" <>
Subject XHTML+DTD problem
Date Wed, 25 Jun 2003 00:51:45 GMT
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="documents/{1}.html" />
      <map:serialize type="xml"/>

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" "">
<html xmlns="">
<body >

The generated output is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""<!--==================
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... 



View raw message