Hi,

My XML files have a line like this in them

<?xml-stylesheet type="text/css" href="/source/lunatech.css" ?>

but that is not meant to be used by AxKit. It knows it can't handle it,
but then declines to handle the XML completely, while I want it to
consider applying the configured XSLT style to it.

Looking in the source, it seems that it's the

    return @$styles if @$styles;

statement in GetMatchingProcessors in Apache::AxKit::ConfigReader that's
the culprit. It assumes that whatever PI's are there, they are always
more applicable than how AxKit is configured.

However, AxKit is but one application that might be asked to process
this file. I do use the PI in my Morphon XML editor or when looking at
the XML itself in Mozilla.


Anyway, here's what I did to solve this for me, I'd like to hear if it
makes sense:

- Remove the abovementioned return statement and set @results = @$styles
  in GetMatchingProcessors.
- Map text/css to a do-nothing handler

This calls the do-nothing handler before the one I really want, but
that's ok.

I guess later handlers could even somehow look in the notes to see
whether they are needed, emulating the original behaviour that PI's
always have precedence.

-- 
Bart.

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

Reply via email to