Subject: RE: libxslt & apache modules - was - RE: [xsl] Caching compiled stylesheets From: Andrés Pedrera <apedrera@xxxxxx> Date: Mon, 15 Oct 2001 10:36:14 +0200 |
Hi everybody, I'm not using Perl, but Ansi C and Apache modules. The problem is once the xslt is parsed it is spread all over the memory and put it together to cache it and restore afterwards seems to be a complicated task. Any help will be welcome. If I find something will tell the list. Regards, ---------------------------------- Andres Pedrera Ya.com Internet Factory -----Mensaje original----- De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]En nombre de Robert Koberg Enviado el: jueves, 11 de octubre de 2001 20:18 Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Asunto: libxslt & apache modules - was - RE: [xsl] Caching compiled stylesheets I am in the same boat and looking for documentation and examples. What language are you using to trigger the transform? I am using perl and XML::LibXML and XML::LibXSLT (which is a perl wrapper for libxml and libxslt). I would love to see your code to just get it from a different angle. AxKit (these guys made XML:LibXML and XML::LibXSLT) might be what you are looking for. The site is down right now but you can access it from: http://217.158.50.178/ Here is a simple script (not for AxKit - an Apache module) that I use: Question: how do you pass parameters? --------------------------------------------- package Apache::Transformations; use strict; use XML::LibXSLT; use XML::LibXML; sub handler { my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $source = $parser->parse_file('/home/gudgeon/sites/master/WEB-INF/tool/config_sites_li st.xml'); my $style_doc = $parser->parse_file('/home/gudgeon/sites/master/WEB-INF/tool/site_chooser.xs l'); my $stylesheet = $xslt->parse_stylesheet($style_doc); my $results = $stylesheet->transform($source); print $stylesheet->output_string($results); } 1; ------------------------------- hope this helps and hoping for help, -Rob > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Andrés > Pedrera > Sent: Thursday, October 11, 2001 10:51 AM > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Caching compiled stylesheets > > > Hi everybody, > > I'm trying to cache some precompiled stylesheets (before > aplying to any > xml), but have not found any info about how to do it. I'm using libxslt in > apache modules and everything is right but execution time (the process is > hard to do). I suppose somebody had the same trouble and i'd like > to know if > there's a way to save (dump) compiled stylesheets and restore it > into memory > afterwards. > > Hope somebody can help me. Regards, > > ------------------------------------------- > Andres Pedrera > Ya.com Internet Factory (http://www.ya.com) > ------------------------------------------- > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:number again, Sebastian Rahtz | Thread | [xsl] Conditional counting, Hunsberger, Peter |
Re: [xsl] complex conditional state, David Carlisle | Date | [xsl] selecting nodes - syntax?, Denis Kranjcec |
Month |