Subject: | XML::Writer 0.624, $SAFE_pi, and W3C's xml-model |
Date: | Fri, 21 Mar 2014 11:52:21 +0100 |
To: | bug-XML-Writer [...] rt.cpan.org |
From: | Georg Bauhaus <bauhaus [...] futureapps.de> |
Hi,
seeing the warning
"Processing instruction target begins with 'xml'"
in the server logs, I noticed that XML::Writer allows PI
'xml-stylesheet', but not 'xml-model'. 'xml-model' is for
associating schemas, as per http://www.w3.org/TR/xml-model/
So, I'd suggest something like the following at the start
of $SAFE_pi, maybe?
if (($name =~ /^xml/i) && ($name !~ /^xml-(stylesheet|model)$/i)) {
carp("Processing instruction target begins with 'xml'");
}
Cheers,
Georg