Skip Menu |
 

This queue is for tickets about the XML-Writer CPAN distribution.

Report information
The Basics
Id: 94078
Status: resolved
Priority: 0/
Queue: XML-Writer

People
Owner: Nobody in particular
Requestors: bauhaus [...] futureapps.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 487b
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
Download (untitled) / with headers
text/plain 397b
On Fri Mar 21 06:52:35 2014, bauhaus@futureapps.de wrote: ... Show quoted text
> 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'"); > }
Thanks for the reference; fixed in 9a963367 with exactly your suggestion of regular expression change.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.