On Tuesday 11 June 2002 7:36 pm, Ken Neighbors wrote: > I am developing an application with several hundred thousand XML files > which will be gzipped to save disk space. I have patched AxKit to > read gzipped input files (with changes to Provider::File and > ConfigReader). I assume this feature will be generally useful, so I > would like to submit the patch. But I have some questions and I would > welcome any feedback on the idea.
First of all, do you know that both XSP and LibXSLT will read gzipped files already? I haven't tried it, but libxml2 has built in support for gunzipping on the fly. Secondly, this is best implemented as an alternate provider. See the AxContentProvider and AxStyleProvider options. Just subclass the File provider and implement the get_fh and get_strref methods. Then you can just go: <Files *.gz> AxContentProvider AxKit::Provider::GzFile </Files> (or whatever you call the module) Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
