You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2003/10/15 11:25:47 UTC
FileGenerator adds XHTML namespace?
Hi Cocoon users,
I just noticed an interesting behaviour of the FileGenerator:
It transforms the source file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
...
</html>
into
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
version="-//W3C//DTD XHTML 1.1//EN">
...
</html>
Is this configurable and documented?
Is JTidy involved (the file ends with .xml)?
--Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: FileGenerator adds XHTML namespace?
Posted by Joerg Heinicke <jh...@virbus.de>.
Are you sure it's not the serializer? AFAIK XHTML is determined by the
root element <html>, try to rename it and see what happens. The
automagic in the FileGenerator (determining the type and using JTidy if
necessary) was removed some time ago.
Joerg
On 15.10.2003 11:25, Andreas Hartmann wrote:
> Hi Cocoon users,
>
> I just noticed an interesting behaviour of the FileGenerator:
> It transforms the source file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> <html>
> ...
> </html>
>
> into
>
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> version="-//W3C//DTD XHTML 1.1//EN">
> ...
> </html>
>
> Is this configurable and documented?
> Is JTidy involved (the file ends with .xml)?
>
> --Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org