Hello everyone,

It's late at night, so I'm having a hard time tracking this down.

I have an XSP page that has worked for the longest time. Recently I upgraded the machine to AxKit 1.6, and the XSP page no longer works. In debugging it, I noticed that the Perl code being generated is not using the taglibs, but is rather just outputting the tags themselves as XML.

Here's a snippet of the XSP page:

<?xml version="1.0"?>
<xsp:page language="Perl"
    xmlns:xsp="http://apache.org/xsp/core/v1";
    xmlns:esql="http://apache.org/xsp/SQL/v2";
    xmlns:param="http://axkit.org/NS/xsp/param/v1";
    xmlns:web="http://axkit.org/NS/xsp/webutils/v1";
>

<market-directory>
<head>
<xsp:logic>
if (lc(<param:sec/>) eq 'market') {
<sitemap-location>markets_marketdirectory</sitemap-location>
} elsif (lc(<param:sec/>) eq 'vendor') {



The relevant section of generated perl code is:


12 sub handler {
13 my ($r, $cgi, $document) = @_;
14 my ($parent);
15
16 { my $elem = $document->createElement(q|market-display|);$document- >setDocumentElement($elem); $parent = $elem; }
17 { my $elem = $document->createElement(q|head|);$parent->appendChild($elem); $parent = $elem; }
18
19 if (lc({ my $elem = $document->createElementNS(q|http://axkit.org/NS/xsp/param/ v1|,q|param:sec|);$parent->appendChild($elem); $parent = $elem; }
20 $parent = $parent->getParentNode;
21 ) eq 'market') {
22 { my $elem = $document->createElement(q|sitemap-location|);$parent- >appendChild($elem); $parent = $elem; }
23 { my $text = $document->createTextNode(q|markets_marketdirectory|);$parent- >appendChild($text); }
24 $parent = $parent->getParentNode;
25
26 } elsif (lc({ my $elem = $document->createElementNS(q|http://axkit.org/NS/xsp/param/ v1|,q|param:sec|);$parent->appendChild($elem); $parent = $elem; }
27 $parent = $parent->getParentNode;
28 ) eq 'vendor') {



And finally, here's a snippet of the httpd.conf for this site:


    <Files ~ "\.(xml|xsp)$">
        SetHandler axkit
        AxAddPlugin    Apache::AxKit::Plugin::QueryStringCache

        AxAddStyleMap application/x-xsp Apache::AxKit::Language::XSP
        AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
        AxCacheDir /tmp/axkit/cachedir
        AxAddXSPTaglib AxKit::XSP::ESQL
        AxAddXSPTaglib AxKit::XSP::Param
        AxAddXSPTaglib AxKit::XSP::PerForm
        AxAddXSPTaglib AxKit::XSP::Sendmail
        AxAddXSPTaglib AxKit::XSP::WebUtils
        AxAddXSPTaglib AxKit::XSP::Util
    </Files>


I'm lost, and since I'm busy with other projects (this is for a site that I no longer support, but it's still running on my server) I don't have much time to track it down. Has anyone seen this before?


Later.
--
Michael A Nachbaur <[EMAIL PROTECTED]>


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



Reply via email to