Hi,

I managed to get sablotron instead of the usual xslt module working on winxp
with the apache example. for everybody who is interested how, here's the
description:

don't use cpan to download sablotron, this won't work without compiling, and
this is rather difficult on windows. instead use ppm. set repository to:

set repository name http://ppm.gingerall.cz

install XML::Sablotron.

Change the htaccess file in eg examples directory (the xml section):
<Files ~ (\.xml)>
 SetHandler perl-script
 PerlHandler Apache::ASP
 PerlSetVar NoState 1
 PerlSetVar XSLT template.xsl
        PerlSetVar XSLTParser XML::Sablotron
 PerlSetVar XSLTCache 1
</Files>

start the site/eg/xslt.xml script.
Regards,

Gert
----- Original Message -----
From: "Joshua Chamas" <[EMAIL PROTECTED]>
To: "WRFan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 5:06 AM
Subject: Re: Sablotron instead of XSLT


> WRFan wrote:
> >
> > So, as far as I understand, you assumed that the tmp directory was
already
> > there, which is true for Unix, but not true for windows, since the
directory
> > is not /tmp, but c:\windows\temp, there is no standard "tmp" directory
in
> > windows. You could change this in makefile.pl, but then again, windows
is
> > not necessarily installed in c:\windows on every pc. The easiest way is
> > simply to let everyone edit the htaccess files and to change the
statedir to
> > whatever directory one wants.
> >
>
> I clearly need to work on configuring the examples in a more
> platform independent way.
>
> > The XSLT example works on my pc, after I made the changes described in
the
> > previous email, but I would like to test the Sablotron module. How do I
> > change the xslt example so that it uses Sablotron or LibXSLT?
> >
>
> Whether XML::LibXSLT is used or XML::XSLT depends on having the
> XSLTParser config set.  Please see
>
>   http://www.apache-asp.org/config.html#XSLTParser
>
> You will need to have XML::LibXSLT already installed of course,
> also true with XML::Sablotron.  I believe the Sablot libraries
> can be had for Windows platforms, though you will still need
> to compile the perl side of it.
>
> --Josh
>
> _________________________________________________________________
> Joshua Chamas                           Chamas Enterprises Inc.
> NodeWorks Founder                       Huntington Beach, CA  USA
> http://www.nodeworks.com                1-714-625-4051
>

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

Reply via email to