| X-POP3-Rcpt: pim@pimdev
| Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
| Date: Thu, 27 Jun 2002 10:55:58 +0100 (BST)
| From: Matt Sergeant <[EMAIL PROTECTED]>
| cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
| "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>,
| "[EMAIL PROTECTED]"
|<[EMAIL PROTECTED]>
|
| On Thu, 27 Jun 2002, Phil Macias wrote:
|
| > I made the (above) changes. When I load bleach.axp the browser hangs
| > and error.log shows:
| >
| > [AxKit] fast handler called for /~pim/xml/bleach.axp
| > [AxKit] Content Provider Override: Apache::AxKit::Provider::File
| > [AxKit] [req] File Provider given $r: /home/pim/public_html/xml/bleach.axp
| > [AxKit] checking if we process this resource
| > [AxKit] media: screen, preferred style: #default
| > [AxKit] Cache: key = c880ea49a54a40a8daebe9e93eb4ede0
| > [AxKit] getting styles and external entities from the XML
| > [AxKit] styles not cached - calling $provider->get_styles()
| > [AxKit] using XS get_styles (libxml2)
| > [AxKit] calling xs_get_styles_fh()
| > [AxKit] calling xs_get_styles_str()
| > [AxKit] parse_pi: type = application/axpoint
| > [AxKit] pi_get_styles: Invalid <?xml-stylesheet?> processing instruction
|
| This should have given you enough clues!
|
| The PI should look like: <?xml-stylesheet type="..." href="..."?> - you
| missed off the href, which is invalid according to the REC that defined
| this particular PI. Simply have the href="NULL" and everything should
| (fingers crossed) work.
|
| > For refernece, here is bleach.axp once again:
| >
| > <?xml version="1.0"?>
| > <slideshow>
| > <title>The Secrets of Using Acme::Bleach</title>
| > <slide>
| > <title>After</title>
| > <point level="1">When running a script that uses
| > Acme::Bleach for the first time, all the distracting
| > printable characters are removed from your source file
| > and only the 'use Acme::Bleach' line appears.</point>
| > <point level="2">The scary part is, the script
| > still works as before.</point>
| > <source-code>
| > use Acme::Bleach; # prints
| > Bactrian Camel (Camelus bactrianus)
| > Dromedary, or Arabian Camel (Camelus dromedarius)
| > ...
| > </source-code>
| > </slide>
| > </slideshow>
|
| I don't believe you - the error log indicates the presence of an
| <?xml-stylesheet?> PI which you've ommitted here.
My fault. the correct bleach.axp was:
<?xml version="1.0"?>
<?xml-stylesheet type="application/axpoint"?>
<slideshow>
<title>The Secrets of Using Acme::Bleach</title>
<slide>
<title>After</title>
<point level="1">When running a script that uses
Acme::Bleach for the first time, all the distracting
printable characters are removed from your source file
and only the 'use Acme::Bleach' line appears.</point>
<point level="2">The scary part is, the script
still works as before.</point>
<source-code>
use Acme::Bleach; # prints
Bactrian Camel (Camelus bactrianus)
Dromedary, or Arabian Camel (Camelus dromedarius)
...
</source-code>
</slide>
</slideshow>
Note that I had the stylesheet statement in bleach.axp.
1. I changed the "stylesheet" line to "<?xml-stylesheet type="application/axpoint"?>".
[AxKit] fast handler called for /~pim/xml/bleach.axp
[AxKit] Content Provider Override: Apache::AxKit::Provider::File
[AxKit] [req] File Provider given $r: /home/pim/public_html/xml/bleach.axp
[AxKit] checking if we process this resource
[AxKit] media: screen, preferred style: #default
[AxKit] Cache: key = c880ea49a54a40a8daebe9e93eb4ede0
[AxKit] getting styles and external entities from the XML
[AxKit] styles not cached - calling $provider->get_styles()
[AxKit] using XS get_styles (libxml2)
[AxKit] calling xs_get_styles_fh()
[AxKit] calling xs_get_styles_str()
[AxKit] parse_pi: href = NULL
[AxKit] parse_pi: type = application/axpoint
[AxKit] xs_get_styles returned: , , slideshow
[AxKit] Calling GetMatchingProcessors with (screen, , , , slideshow)
[AxKit] get_styles: loading style modules
[AxKit] get_styles: looking for mapping for style type: 'application/axpoint'
[AxKit] Caught an exception
[AxKit] [DECLINED] No implementation mapping available for type
'application/axpoint'
[AxKit] [DECLINED] From: /usr/lib/perl5/site_perl/5.6.0/Error.pm : 148
File does not exist: /home/pim/public_html/xml/NULL
2. If I leave off the type="application/axpoint" and just run with
<?xml-stylesheet type="application/axpoint"?>
error.log resorts to:
[AxKit] xs_get_styles returned: , , slideshow
[AxKit] Calling GetMatchingProcessors with (screen, , , , slideshow)
[AxKit] get_styles: loading style modules
[AxKit] get_styles: looking for mapping for style type: 'application/x-axpoint'
[AxKit] fast handler called for /~pim/xml/bleach.axp
[AxKit] Content Provider Override: Apache::AxKit::Provider::File
[AxKit] [req] File Provider given $r: /home/pim/public_html/xml/bleach.axp
[AxKit] checking if we process this resource
[AxKit] media: screen, preferred style: #default
[AxKit] Cache: key = c880ea49a54a40a8daebe9e93eb4ede0
[AxKit] getting styles and external entities from the XML
[AxKit] styles not cached - calling $provider->get_styles()
[AxKit] using XS get_styles (libxml2)
[AxKit] calling xs_get_styles_fh()
[AxKit] calling xs_get_styles_str()
[AxKit] parse_pi: href = NULL
[AxKit] pi_get_styles: Invalid <?xml-stylesheet?> processing instruction
...which was my previous problem.
- Phil Macias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]