#17 xml::xslt fails in mod_perl2/apache2

closed
nobody
None
5
2005-12-15
2005-02-12
No

I'm running apache 2.052, mod_perl 1.99_17, perl 5.8.4,
win xp home 32-bit, xml::parser 2.34.

listing of test.xsl:
***
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<html>
<head>
<title>test</title>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>

</xsl:stylesheet>
***
listing of test.xml:
***
<?xml version="1.0" encoding="UTF-8"?>
<list>
</list>
***
listing of test.pl:
***
print "Content-type: text/html\n\n";

use XML::XSLT;

my $xslt = XML::XSLT->new ("test.xsl", warnings => 1);

$xslt->transform ("test.xml");

print $xslt->toString;

$xslt->dispose();
***
listing of error.log:
***
[Sat Feb 12 22:32:33 2005] [error] Error while parsing:
syntax error at line 1, column 0, byte 0 at
F:/Net/Perl/site/lib/XML/Parser.pm line 187

test.xsl at F:/Net/Perl/site/lib/XML/XSLT.pm line 1507.
***

works fine on command line.

Discussion

  • Jonathan Stowe

    Jonathan Stowe - 2005-12-15

    Logged In: YES
    user_id=313586

    I guess you have this fixed now, but this is because your
    files are not in the current directory - I would suggest
    using a file path name to any files when using mod_perl

     
  • Jonathan Stowe

    Jonathan Stowe - 2005-12-15
    • status: open --> closed
     

Log in to post a comment.