Per,
Are you sure you are using the same version of XML::Generator that you think
you are? Using XML::Generator version 0.96, this works for me:
use XML::Generator ':strict', allowed_xml_tags => ['xml-stylesheet'];
print foo(xmlpi('xml-stylesheet', href => 'mystyle.css', type =>
'text/css'));
Generates:
<foo><?xml-stylesheet href="mystyle.css" type="text/css"?></foo>
This is what you want, correct?
Ben
Show quoted text----- Original Message -----
From: "Guest via RT" <bug-XML-Generator@rt.cpan.org>
To: <AdminCc of cpan Ticket #5506 :>
Sent: Monday, March 01, 2004 8:31 AM
Subject: [cpan #5506] style sheets in XML::generator
>
> This message about XML-Generator was sent to you by guest <> via
rt.cpan.org
probably known, set as processing instructions, but if you set conformance
to strict, and try to set any anything starting with xml, it is rejected -
Even if you fiddle with the allowed_xml_tags. The ck_syntax function does
nothing with respect to honouring this tag, so I have uncommented the bit
that deals with this issue.
>
> Have I missed something?
>
> BR
>
> Per Glentvor
>