Consider the following markup:

<%@language="PerlScript"%>
<%
    my $prolog= '<?xml version="1.0" encoding="ISO-8859-1"?>
       <!DOCTYPE xform [
          <!ATTLIST string name ID #REQUIRED>
          <!ATTLIST group name ID #REQUIRED>
       ]>';
%>
<html>
<body>
    Prolog: <pre><%=$Server->HTMLEncode($prolog)%></pre>
</body>
</html>

when I run this, the XML declaration is missing in the output.  I think 
this is somehow related to the XMLSubsParser.  Not sure if my diagnosis is 
correct, but I can fix the problem by breaking the declaration into two 
pieces.  I think this should be considered a bug.

Cheers
Dmitry


Reply via email to