Am Thursday, 18. September 2003 01:03, schrieb Arne Claassen:
> Is it possible to have an Apache::AxKit::Provider::Filter handler set
> the styles for the output it's passing along?
>
> I.e. currently my handler does something like this:
>
> my $stylesheet = '<?xml-stylesheet href="/app/default.xsl"
> type="text/xsl"?>'; if( $q->param( 'raw' ) ) {
> undef $stylesheet;
> }
>
> $r->print( <<"XML");
> <?xml version="1.0"?>
> $stylesheet
> $xml
> XML
>
> return OK
>
> Is there a cleaner way to setting the stylesheet in this handler than
> printing it to the XML?
Yes there is, subclass Apache::AxKit::Provider::Filter and override the
get_styles subroutine.
--
CU
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]