I have a module, that is quite simple so I could grow it to brach out
on other things I want to do...
<----------- Start ---------------->
# $id: $
package ITS::XML_Styles;
use strict;
use vars qw/$VERSION/;
$VERSION = "0.1";
use AxKit;
sub handler
{
my($provider,$media,$style,$doctype,$dtd,$root)[EMAIL PROTECTED];
AxKit::Debug(4, "[ITS::XML_Styles.pm] - Made it into the Handle with:
PROVIDER: $provider, MEDIA:$media STYLE:$style DOCTYPE:$doctype DTD:$dt>
# AxKit::reset_stylesheets ();
AxKit::insert_last_stylesheet("text/xsl","/xsl/release.xsl");
AxKit::insert_last_stylesheet("application/x-xsp","/dev/null");
AxKit::Debug(4, "[ITS::XML_Styles.pm] - Leaving");
}
<----------- End ---------------->
When I use it on the an xsp file I get the following result
<Log REsults>
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] fast handler called
for /testing/TEST/XSPTEST/release.xsp
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] Running plugin:
Apache::AxKit::StyleChooser::QueryString
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] Content Provider
Override: Apache::AxKit::Provider::File
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] decoding from UTF-8
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] [req] File Provider
given $r: /data1/www/html/testing/TEST/XSPTEST/release.xsp
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] checking if we
process this resource
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] media: screen,
preferred style: #default
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] Cache: key =
843c9b8fe9b8fc08fc2377d75cb0e600
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] getting styles and
external entities from the XML
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] styles not cached -
calling $provider->get_styles()
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] using XS get_styles
(libxml2)
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] encoding to UTF-8
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] calling
xs_get_styles_fh()
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] calling
xs_get_styles_str()
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] xs_get_styles
returned: , , {http://apache.org/xsp/core/v1}page
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] Calling
GetMatchingProcessors with (screen, , , , {http://apache.org/xsp/core/v1}page)
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] [ITS::XML_Styles.pm]
- Made it into the Handle with: PROVIDER:
Apache::AxKit::Provider::File=HASH(0x85467dc), MEDIA:screen STYLE:#default DOCTYPE:
DTD: ROOT:{http://apache.org/xsp/core/v1}page
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] [ITS::XML_Styles.pm]
- Leaving
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] Caught an exception
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] [DECLINED] No styles
defined for '/data1/www/html/testing/TEST/XSPTEST/release.xsp'
[Fri Jul 18 15:07:11 2003] [warn] [client 158.155.4.148] [AxKit] [DECLINED] From:
/usr/lib/perl5/site_perl/5.6.0/Error.pm : 148
</End Log Result>
Any ideas? Its getting into the Module, and back to the end, however its not getting
hte stylesheets...
John
--------------------------------------------------------------------------------
John R. Brewster
Director Software Testing Department -- Mediation Group
Configuration Manager
Intec Telecom Systems WWW: http://www.intec-telecom-systems.com
Building G, 4th Floor E-Mail: [EMAIL PROTECTED]
5775 Peachtree-Dunwoody Road E-Mail: [EMAIL PROTECTED]
Atlanta, GA 30342 Voice: 404 705.2818 / 2800
Fax: 404 705.2805
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]