|
From: Frank T. <ft...@ui...> - 2001-02-23 13:23:23
|
XML::XSLT 0.32 has a bug where it faults if <xsl:output> is used, but the
attribute omit-xml-declaration is not defined. I've traced the bug, and
the patch at the end of this message will fix this problem.
In another bug I've found, <xsl:output> does not seem to support
doctype-public or doctype-system yet; I see the code for it, but it just
doesn't seem to go through.
I noticed that the last two versions of XSLT aren't on SourceForge; is
there a reason for this?
I'll put this patch in the patch submission page for the project, too.
Index: lib/XML/XSLT.pm
===================================================================
RCS file: /cvsroot/xmlxslt/XML-XSLT/lib/XML/XSLT.pm,v
retrieving revision 1.4
diff -u -r1.4 XSLT.pm
--- lib/XML/XSLT.pm 2001/01/23 04:03:02 1.4
+++ lib/XML/XSLT.pm 2001/02/23 13:23:09
@@ -555,8 +555,7 @@
$self->{METHOD} = $method->getNodeValue if defined $method;
my $omit = $attribs->getNamedItem('omit-xml-declaration');
- $self->{OMIT_XML_DECL} = defined $omit->getNodeValue ?
- $omit->getNodeValue : 'no';
+ $self->{OMIT_XML_DECL} = $omit ? $omit->getNodeValue : 'no';
if ($self->{OMIT_XML_DECL} ne 'yes' && $self->{OMIT_XML_DECL} ne
'no') {
$self->warn(qq{Wrong value for attribute "omit-xml-declaration"
in\n\t} .
--
Frank Tobin http://www.uiuc.edu/~ftobin/
|