[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

libxslt & apache modules - was - RE: Caching compiled

Subject: libxslt & apache modules - was - RE: Caching compiled stylesheets
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Thu, 11 Oct 2001 11:17:59 -0700
libxslt caching
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:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.