Hello,

in my XML doc I need to declare some entities. But if I do so, I cant use the HTMLSerializer to output my doc because a braket > appears on the right top corner. Why? Is it a bug in HTMLSerializer? What can I do to avoid this?

My xml doc:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html [
 <!ENTITY foo "bar">]>
<html>
&foo;
</html>

My pipeline:

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

My browser output (source):

>
<html>
bar
</html>

Look at the first braket > on top of the source. Why is it there?

Thank you for your help!

Regards
Stephan




Reply via email to