Subject: | Step::as_xml fails for processing-instruction() |
Date: | Sun, 08 Oct 2006 13:21:29 +0200 |
To: | bug-xml-xpath [...] rt.cpan.org |
From: | Bjoern Hoehrmann <derhoermi [...] gmx.net> |
Hi,
The expression 'processing-instruction()' cannot currently be
serialized by Step::as_xml as it uses
if ($self->{literal}->value) {
which will fail as 'literal' is not defined in this case. For e.g.
'processing-instruction("xml-stylesheet")' it would also make more
sense to serialize this as
<LocationPath>
<Step>
<Axis>child</Axis>
<Test><processing-instruction>
<Literal>xml-stylesheet</Literal>
</processing-instruction></Test>
</Step>
</LocationPath>
instead of simply ...'xml-stylesheet'...
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/