This is a list of bugs or niggles that Barrie sent me while the list was
offline. I'm mostly forwarding it here so that it's archived. However some
issues may be worth discussing.

(crosses fingers that it's not too large for ezmlm)

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\

---------- Forwarded message ----------
Date: Thu, 29 Nov 2001 09:14:22 -0000
From: Matt Sergeant <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Barries buglist



Matt.
-- 
<:->Get a smart net</:->



_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- Begin Message ---
Seems to me that XPathScript could be tweaked to do the same by giving
it a quick way to load taglibs in to %$t like XSPAddTaglib and then
enabling a taglib mode.  Not sure it's worth it, but I still think the
XPathScript concept is nicer than the XSP concept to people (like me)
who speak Perl more naturally than they speak XML.

Ah well, jsut thoughts...

- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Thanks,

Barrie

P.S. Keeping my fingers crossed that BT comes through soon w/ that
config problem... good luck.

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Gotcha, thanks!

- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
I'll start signing my messages, then you can filter on my name no matter
what the email ;-).

FWIW I'll be slowing down after this week; on to other chapters...

- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Thanks,

Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Thanks,

Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
    if ($e->{XMLStyle_preferred}) {

I really do wish perl had an empty operator that meant
(!defined||!length).

Very minor, of course, but hey...  you can tell me to stop reporting
things like this if you like.

- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Sorry to keep pestering you with questions/bug reports/false alarms, I
hope it's not too annoying.  The bright side is that the chapter is
coming along well...

- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
My bad, sorry.  Saw the fact that you keep a list of current medias, saw
the parse loop for <AxMedia, didn't notice the "only takes one
parameter" warning.

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
       getAttribute ( name )

              Returns the attribute node with key name.

should read "Returns the value of the...".

- Barrie


________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
[barries@//sizzle] mpdh$ ap stack
ap: read '/home/barries/mpdh/etc/aprc'
Core was generated by `/home/barries/mpdh/www/bin/httpd -d
/home/barries/mpdh/www -f /home/barries/mpd'.
Program terminated with signal 11, Segmentation fault.
#0  xmlStrdup (cur=0x600d <Address 0x600d out of bounds>) at parser.c:1035
1035        while (*p != 0) p++; /* non input consuming */
#0  xmlStrdup (cur=0x600d <Address 0x600d out of bounds>) at parser.c:1035
#1  0x401da03e in xmlNewDoc (version=0x600d <Address 0x600d out of bounds>)
    at tree.c:470
#2  0x401dc2f9 in xmlCopyDoc (doc=0x818f660, recursive=1) at tree.c:2974
#3  0x40298559 in XS_XML__LibXSLT_parse_stylesheet ()
   from
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/auto/XML/LibXSLT/LibXSLT.so
#4  0x8105035 in Perl_pp_entersub ()
#5  0x80ffcfd in Perl_runops_standard ()
#6  0x80c57c5 in S_call_body ()
#7  0x80c558e in perl_call_sv ()
#8  0x807edbb in perl_call_handler (sv=0x8767f9c, r=0x8859b64, args=0x0)
    at mod_perl.c:1635
#9  0x4023a4df in axkit_handler (r=0x8859b64) at axconfig.c:1018
#10 0x8099b13 in ap_invoke_handler (r=0x8859b64) at http_config.c:517
#11 0x80ad6a9 in process_request_internal (r=0x8859b64) at
http_request.c:1303
#12 0x80adac8 in ap_internal_redirect (
    new_uri=0x8859b14 "/AxKit/axproc/index.xhtml", r=0x88582ac)
    at http_request.c:1427
#13 0x807518d in handle_dir (r=0x88582ac) at mod_dir.c:174
#14 0x8099b13 in ap_invoke_handler (r=0x88582ac) at http_config.c:517
#15 0x80ad6a9 in process_request_internal (r=0x88582ac) at
http_request.c:1303
#16 0x80ad70c in ap_process_request (r=0x88582ac) at http_request.c:1319
#17 0x80a4d3e in child_main (child_num_arg=0) at http_main.c:4208
#18 0x80a4f7c in make_child (s=0x817a3cc, slot=0, now=999540816)
    at http_main.c:4367
#19 0x80a5029 in startup_children (number_to_start=5) at http_main.c:4394
#20 0x80a5666 in standalone_main (argc=5, argv=0xbffff8f4) at
http_main.c:4682
#21 0x80a5df3 in main (argc=5, argv=0xbffff8f4) at http_main.c:5009

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
- Barrie

________________________________________________________________________
This email has been scanned for all viruses by the Star Internet Virus
Screen.
The service is provided in partnership with MessageLabs, the email security
company.
For more information on a higher level of virus protection visit
www.star.net.uk
________________________________________________________________________
--- End Message ---
--- Begin Message ---
Here's the line in Provider.pm's parse_pi() that prompts the question:

    @mediatypes = grep
/^(screen|tty|tv|projection|handheld|print|braille|aural|all)$/,
@mediatypes;

FWIW, the AxKit chapter is looking to be about 50 pages or so.  Too
short to do it deeply, but if they can get a good feel for getting it up
and running, I'll be happy.  Kip can do the deep throat on it ;-).

- Barrie

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- End Message ---
--- Begin Message ---
Serving an xhtml file through XPathScript seems to trip up the
<?xml-stylesheet scanner:

   <?xml version="1.0"?>
   <!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "DTD/xhtml1-strict.dtd"
   >
   <html
     xmlns="http://www.w3.org/1999/xhtml";
     xml:lang="en"
     lang="en"
   >
   <head>
     <title>AxKit Output Transformer Example Page</title>
   </head>
   <body>
      <p>This page served at <now />.</p>
   </body>
   </html>

Gets me this:


ap start: ...some new information has appeared in
'../../www/logs/error_log':
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] handler called
for /AxKit/outxform/index.xhtml
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] media: screen,
preferred style: #default
Use of uninitialized value in join or string at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Cache.pm line
25.
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] Cache: key =
e266e2f35fff7fc58d3959acfd7ccd24
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] getting styles
and external entities from the XML
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] styles not
cached - calling $provider->get_styles()
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] using XS
get_styles (libxml2)

[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_fh()

[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] xs_get_styles
returned: -//W3C//DTD XHTML 1.0 Strict//EN, DTD/xhtml1-strict.dtd,
{http://www.w3.org/1999/xhtml}html

Use of uninitialized value in concatenation (.) or string at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 158.
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] Calling
GetMatchingProcessors with (screen, , -//W3C//DTD XHTML 1.0 Strict//EN,
DTD/xhtml1-strict.dtd, {http://www.w3.org/1999/xhtml}html)
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] Checking
dependencies
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] xml newer than
cache
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] some condition
failed. recreating output
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit]
procesS_request: loading style modules
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
looking up uri /styles/passthru.xps
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
set filename to /home/barries/mpdh/www/htdocs/styles/passthru.xps
[Fri Aug 17 15:51:05 2001] [warn] [client 127.0.0.1] [AxKit]
process_request: looking for mapping for style type:
'application/x-xpathscript (for '/styles/passthru.xps')
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] styles:
Apache::AxKit::Language::XPathScript(/styles/passthru.xps)
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] about to
execute: Apache::AxKit::Language::XPathScript::handler
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] XPathScript:
Getting XML Source
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] XPathScript:
reparsing file
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
looking up uri DTD/xhtml1-strict.dtd
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
set filename to /home/barries/mpdh/www/htdocs/AxKit/outxform/DTD
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] (2)No such file or
directory: [AxKit] File Provider looking up uri DTD/xhtml1-strict.dtd
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
set filename to /home/barries/mpdh/www/htdocs/AxKit/outxform/DTD
[Fri Aug 17 15:51:06 2001] [warn] [client 127.0.0.1] (2)No such file or
directory: [AxKit] Caught an exception
Use of uninitialized value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm line 326.
[Fri Aug 17 15:51:06 2001] [error] [client 127.0.0.1] [AxKit] [UnCaught]
File '/home/barries/mpdh/www/htdocs/AxKit/outxform/DTD' does not exist or is
not readable
[Fri Aug 17 15:51:06 2001] [error] [client 127.0.0.1] [AxKit] [Backtrace]
File '/home/barries/mpdh/www/htdocs/AxKit/outxform/DTD' does not exist or is
not readable at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Error.pm
line 146
        Error::throw('Apache::AxKit::Exception::IO', '-text', 'File
\'/home/barries/mpdh/www/htdocs/AxKit/outxform/DTD\' does n...') called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider/File.p
m line 159
        
Apache::AxKit::Provider::File::get_fh('Apache::AxKit::Provider::File=HASH(0x
8837eec)') called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider/File.p
m line 173
        
Apache::AxKit::Provider::File::get_strref('Apache::AxKit::Provider::File=HAS
H(0x8837eec)') called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Provider.pm
line 89
        
Apache::AxKit::Provider::__ANON__('XML::Parser::Expat=HASH(0x8999f88)',
undef, 'DTD/xhtml1-strict.dtd', '-//W3C//DTD XHTML 1.0 Strict//EN') called
at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/XML/Parser/Expat.pm line
474
        XML::Parser::Expat::parse('XML::Parser::Expat=HASH(0x8999f88)',
'<?xml version="1.0"?>^J<!DOCTYPE html ^J  PUBLIC "-//W3C//DTD XHTM...')
called at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/XML/Parser.pm line
185
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/XML/Parser.pm line 184
        XML::Parser::parse('XML::Parser=HASH(0x82c3cfc)', '<?xml
version="1.0"?>^J<!DOCTYPE html ^J  PUBLIC "-//W3C//DTD XHTM...') called at
/usr/local/lib/perl5/site_perl/5.6.1/XML/XPath/XMLParser.pm line 75
        
XML::XPath::XMLParser::parse('XML::XPath::XMLParser=HASH(0x88921dc)', '<?xml
version="1.0"?>^J<!DOCTYPE html ^J  PUBLIC "-//W3C//DTD XHTM...') called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Language/XPathS
cript.pm line 143
        
Apache::AxKit::Language::XPathScript::get_source_tree('Apache::AxKit::Provid
er::File=HASH(0x86dbe4c)', 'XML::XPath::XMLParser=HASH(0x88921dc)') called
at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Language/XPathS
cript.pm line 68
        
Apache::AxKit::Language::XPathScript::handler('Apache::AxKit::Language::XPat
hScript', 'AxKit::Apache=SCALAR(0x86d8a80)',
'Apache::AxKit::Provider::File=HASH(0x86dbe4c)',
'Apache::AxKit::Provider::File=HASH(0x86d8ae0)', 1) called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm line 483
        AxKit::process_request('AxKit::Apache=SCALAR(0x86d8a80)',
'Apache::AxKit::Provider::File=HASH(0x86dbe4c)', 'ARRAY(0x83185d4)') called
at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm line 286
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm line 212
        AxKit::main_handler('AxKit::Apache=SCALAR(0x86d8a80)',
'Apache::AxKit::Provider::File=HASH(0x86dbe4c)') called at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/AxKit.pm line 156
        AxKit::fast_handler('AxKit::Apache=SCALAR(0x86d8a80)') called at
PerlTypeHandler subroutine `Apache::AxKit::StyleChooser::QueryString' line 0
        eval {...} called at PerlTypeHandler subroutine
`Apache::AxKit::StyleChooser::QueryString' line 0

Use of uninitialized value in hash element at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/ConfigReader.pm
line 223.
ap start: ...skipped 2 more lines, see ../../www/logs/error_log


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- End Message ---
--- Begin Message ---
Also looks like the output transformer gets an entire doc, not a
line-per-call, which is what the docs say.

sub deliver {
    my $self = shift;
    return if $self->{no_cache};
    my $r = $self->{apache};

    {
        # get content-type
        AxKit::Debug(4, "Cache: Getting content-type");
        if (my $type = $self->get_type) {
            AxKit::Debug(4, "Cache: setting content-type: $type");
            $r->content_type($type);
        }
    }
    
    if ($r->content_type eq 'changeme' && !$r->notes('axkit_passthru_type'))
{
        $AxKit::Cfg->AllowOutputCharset(1);
        $r->content_type('text/html; charset=' .
($AxKit::Cfg->OutputCharset || "UTF-8"));
    }
    elsif ($r->notes('axkit_passthru_type')) {
        $r->content_type($AxKit::OrigType);
    }
    
    my ($transformer, $doit) = AxKit::get_output_transformer();
    
    if ($doit) {
        AxKit::Debug(4, "Cache: Transforming content and printing to
browser");
        $r->send_http_header() unless lc($r->dir_config('Filter')) eq 'on';
        $r->print( $transformer->( $self->read() ) );
        return OK;
    }
    else {
        AxKit::Debug(4, "Cache: Sending untransformed content to browser");

        # Make sure we unset PATH_INFO or wierd things can happen!
        $ENV{PATH_INFO} = '';
        $r->path_info('');
        
        if ($self->{gzip} && $AxKit::Cfg->DoGzip) {
            AxKit::Debug(4, 'Cache: Delivering gzipped output');
            $r->filename($self->{file}.'.gz');
        }
        else {
            $r->filename($self->{file});
        }
        
        return DECLINED;
    }
    
}


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- End Message ---
--- Begin Message ---
    <AxStyleName "via_xps">
        AxNoCache On
        AxAddProcessor application/x-xpathscript /styles/index.xps
    </AxStyleName>

Combined with this:

   <%
   use Apache::Util qw( escape_html ) ;

   $t->{link}->{testcode} = sub {
       my ( $node, $r ) = @_ ;
       my $url  = $node->findvalue( "url" ) ;
       my $html = $node->findvalue( "html" ) ;
       $r->{pre} = qq{<li><a href="$url">$html</a>} ;
       return -1 ; # Do not emit children.  XXX Use "DO_SELF_ONLY" if patch
accepted.
   } ; 

   %><html>
   <head>
       <%= apply_templates("/page/title") %>
   </head>
   <body bgcolor="#ffffff">
   <!--#include file="/AxKit/header.xps" -->
   <ul>
   <%= apply_templates("/page/body/link") %>
   </ul>
   <p>This page served at <%= escape_html scalar localtime %>
   </body>
   </html>

Seems to lead to an intermittent coredump:

$ ap get AxKit/?style=via_xps
ap: read '/home/barries/mpdh/etc/aprc'
aprc: configure_httpd complete
ap get: ...got '200 OK' and   330 bytes of 'text/html' from 'GET
http://127.0.0.1:8080/AxKit/?style=via_xps'.
$ ap get AxKit/?style=via_xps
ap: read '/home/barries/mpdh/etc/aprc'
aprc: configure_httpd complete
ap get: ... ERROR: No Content-Type: header received!
ap get: ...got '500 unexpected EOF before status line seen' and     0 bytes
from 'GET http://127.0.0.1:8080/AxKit/?style=via_xps'.
ap get: ...some new information has appeared in '../../www/logs/error_log':
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] handler called
for /AxKit/index.xml
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] media: screen,
preferred style: via_xps
Use of uninitialized value in join or string at
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux/Apache/AxKit/Cache.pm line
25.
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] Cache: key =
7098a24c1bea0802ba531c114fff921f
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] getting styles
and external entities from the XML
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] styles cached
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] cache doesn't
exist
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] some condition
failed. recreating output
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit]
procesS_request: loading style modules
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
looking up uri /styles/index.xps
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
set filename to /home/barries/mpdh/www/htdocs/styles/index.xps
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit]
process_request: looking for mapping for style type:
'application/x-xpathscript (for '/styles/index.xps')
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] styles:
Apache::AxKit::Language::XPathScript(/styles/index.xps)
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] about to
execute: Apache::AxKit::Language::XPathScript::handler
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] XPathScript:
Getting XML Source
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] XPathScript:
reparsing file
[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] Checking
stylesheet mtime: 998072591

[Fri Aug 17 14:39:24 2001] [warn] [client 127.0.0.1] [AxKit] File Provider
looking up relative uri /AxKit/header.xps
[Fri Aug 17 14:39:25 2001] [notice] child pid 19463 exit signal Segmentation
fault (11), possible coredump in /home/barries/mpdh/www
$ ap get AxKit/?style=via_xps
ap: read '/home/barries/mpdh/etc/aprc'
aprc: configure_httpd complete
ap get: ...got '200 OK' and   330 bytes of 'text/html' from 'GET
http://127.0.0.1:8080/AxKit/?style=via_xps'.
$ ap stack
ap: read '/home/barries/mpdh/etc/aprc'
Core was generated by `/home/barries/mpdh/www/bin/httpd -d
/home/barries/mpdh/www -f /home/barries/mpd'.
Program terminated with signal 11, Segmentation fault.
#0  0x80ac5b3 in ap_sub_req_method_uri (method=0x81545ca "GET", 
    new_file=0x89c90a8 "/AxKit/header.xps", r=0x87ca6cc) at
http_request.c:803
803         rnew->per_dir_config = r->server->lookup_defaults;
#0  0x80ac5b3 in ap_sub_req_method_uri (method=0x81545ca "GET", 
    new_file=0x89c90a8 "/AxKit/header.xps", r=0x87ca6cc) at
http_request.c:803
#1  0x80ac899 in ap_sub_req_lookup_uri (
    new_file=0x89c90a8 "/AxKit/header.xps", r=0x87ca6cc) at
http_request.c:874
#2  0x808c61c in XS_Apache_lookup_uri (cv=0x821ee00) at Apache.c:3026
#3  0x8105035 in Perl_pp_entersub ()
#4  0x80ffcfd in Perl_runops_standard ()
#5  0x80c57c5 in S_call_body ()
#6  0x80c558e in perl_call_sv ()
#7  0x807edbb in perl_call_handler (sv=0x89b46cc, r=0x87c7a74, args=0x0)
    at mod_perl.c:1635
#8  0x4023a4df in axkit_handler (r=0x87c7a74) at axconfig.c:1018
#9  0x8099b13 in ap_invoke_handler (r=0x87c7a74) at http_config.c:517
#10 0x80ad6a9 in process_request_internal (r=0x87c7a74) at
http_request.c:1303
#11 0x80adac8 in ap_internal_redirect (
    new_uri=0x87c7a54 "/AxKit/index.xml?style=via_xps", r=0x87c66ac)
    at http_request.c:1427
#12 0x807518d in handle_dir (r=0x87c66ac) at mod_dir.c:174
#13 0x8099b13 in ap_invoke_handler (r=0x87c66ac) at http_config.c:517
#14 0x80ad6a9 in process_request_internal (r=0x87c66ac) at
http_request.c:1303
#15 0x80ad70c in ap_process_request (r=0x87c66ac) at http_request.c:1319
#16 0x80a4d3e in child_main (child_num_arg=1) at http_main.c:4208
#17 0x80a4f7c in make_child (s=0x817a3cc, slot=1, now=998072866)
    at http_main.c:4367
#18 0x80a52f5 in perform_idle_server_maintenance () at http_main.c:4531
#19 0x80a5835 in standalone_main (argc=5, argv=0xbffff8f4) at
http_main.c:4763
#20 0x80a5df3 in main (argc=5, argv=0xbffff8f4) at http_main.c:5009

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- End Message ---
--- Begin Message ---
I'm overriding Apache::AxKit::Provider::Scalar to use LWP to suck up a
remote page in to a scalar and can't get it to work.

Notably:

   sub get_styles {
       my $self = shift;
       return $self->{styles}, [];
   }

Seems to be returning too many values.

- Barrie

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
--- End Message ---
--- Begin Message ---
As a side note, I noticed that a 0 byte .xps stylesheet seems to act as
a complete passthru.

- Barrie

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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

Reply via email to