Christian Glahn wrote:
Did you upgrade XML::LibXSLT, too? There were known problems, because of
incompatible proxy structures.

Well, I didn't but I am not using XSLT -I am using XPathScript.


We had a conversation with pepl on irc://irc.perl.org/#axkit, and we made it work patching AxKit::XSP::Util this way:

*** Util.pm.dist Wed Mar 17 10:24:15 2004
--- Util.pm Wed Mar 17 10:51:31 2004
***************
*** 20,26 ****
# insert from a local file
sub include_file {
my ($document, $parent, $filename) = @_;
! my $doc = XML::LibXML->new()->parse_file($filename);
if ($doc) {
my $root = $doc->getDocumentElement();
$root = $document->importNode($root);
--- 20,36 ----
# insert from a local file
sub include_file {
my ($document, $parent, $filename) = @_;
! my $parser = XML::LibXML->new() ;
! local($XML::LibXML::match_cb, $XML::LibXML::open_cb,
! $XML::LibXML::read_cb, $XML::LibXML::close_cb);
! Apache::AxKit::LibXMLSupport->reset();
! local $Apache::AxKit::LibXMLSupport::provider_cb =
! sub {
! my $r = shift;
! my $provider = Apache::AxKit::Provider->new_content_provider($r);


!              return $provider;
!          };
!     my $doc = $parser->parse_file($filename);
      if ($doc) {
          my $root = $doc->getDocumentElement();
          $root = $document->importNode($root);


That is: pepl made me change the subroutine I am using in Util.pm with a chunk of code he took from the CVS version of LibXSLT. Apart of a behaviour change in how the file is found (before the change I had to specify the full path of the included file, now it requires just the part relative to the DocumentRoot of Apache), it is working fine.


Let me know if I can do anything to help.

Ciao
--bronto

--
Marco Marongiu                            Email: [EMAIL PROTECTED]
System Administrator                      Phone: +39 070 460 1684
Tiscali S.p.A.                            Fax:   +39 070 460 9684
International IT Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to