You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by PhoenixWR <Ph...@hotmail.com> on 2002/04/06 04:34:36 UTC

Re: XML::LibXSLT instead of XSLT

and as an addition, if using XML::LibXSLT  instead of sablotron or xslt on
windows, repository for XML::LibXSLT and XML::LibXML is
 http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer

and htaccess looks like this:

<Files ~ (\.xml)>
 SetHandler perl-script
 PerlHandler Apache::ASP
 PerlSetVar NoState 1
 PerlSetVar XSLT template.xsl
        PerlSetVar XSLTParser XML::LibXSLT
 PerlSetVar XSLTCache 1
</Files>

Gert
----- Original Message -----
From: "PhoenixWR" <Ph...@hotmail.com>
To: <as...@perl.apache.org>
Sent: Saturday, April 06, 2002 4:17 AM
Subject: Re: Sablotron instead of XSLT


> 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" <jo...@chamas.com>
> To: "WRFan" <Ph...@hotmail.com>
> Cc: <as...@perl.apache.org>
> 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: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org