You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by Kip Hampton <kh...@totalcinema.com> on 2003/02/17 04:27:28 UTC
RFC: 1.7 Feature -- New Config Directive: AxSkipInDocumentMappings
Feature:
Add an AxKit configuration directive that allows users to skip over the
get_styles() root, DTD stylesheet PI extraction as needed.
Justification:
The AxAdd(Root|DTD|Doctype)Processor directives are damn useful for most
general cases, but users should have the option to skip over the logic
(and the overhead) assocated with extracing that info from the source
XML in cases where only named styles are used, or, where a custom
ConfigReader that does not reference the components the XML source is
employed.
Obviously, we need to pick a better, more intuitive name for the
directive-- suggestions welcome..
Thoughts?
-kip
Re: RFC: 1.7 Feature -- New Config Directive: AxSkipInDocumentMappings
Posted by Kip Hampton <kh...@totalcinema.com>.
Jörg Walter wrote:
> On Monday, 17. February 2003 04:27, Kip Hampton wrote:
>
>>Feature:
>>Add an AxKit configuration directive that allows users to skip over the
>>get_styles() root, DTD stylesheet PI extraction as needed.
> We could make that automatic - we know at request time if any
> content-dependent processor is used. Keep a flag in the dir config, and
> toggle it on when we encounter a (Root|DTD|Doctype) directive. Skip parsing
> when the flag is off and AxIgnorePI (what's the name again?) is on. This
> should use about the same processing power as a manual setting.
>
** insert much IRC handwaving and cat-herding **
Okay, I'll go along with that.
In reality, its what Axkit should do in any case, regardless of the
addition of any additional directive we might or might not add to
brute-force the behavior.
-kip
Re: RFC: 1.7 Feature -- New Config Directive: AxSkipInDocumentMappings
Posted by Jörg Walter <eh...@ich.bin.kein.hoschi.de>.
On Monday, 17. February 2003 04:27, Kip Hampton wrote:
> Feature:
> Add an AxKit configuration directive that allows users to skip over the
> get_styles() root, DTD stylesheet PI extraction as needed.
>
> Justification:
> The AxAdd(Root|DTD|Doctype)Processor directives are damn useful for most
> general cases, but users should have the option to skip over the logic
> (and the overhead) assocated with extracing that info from the source
> XML in cases where only named styles are used, or, where a custom
> ConfigReader that does not reference the components the XML source is
> employed.
>
> Obviously, we need to pick a better, more intuitive name for the
> directive-- suggestions welcome..
We could make that automatic - we know at request time if any
content-dependent processor is used. Keep a flag in the dir config, and
toggle it on when we encounter a (Root|DTD|Doctype) directive. Skip parsing
when the flag is off and AxIgnorePI (what's the name again?) is on. This
should use about the same processing power as a manual setting.
--
CU
Joerg
PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E 7779 CDDC 41A4 4C48 6F94