You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonas Nordström <Jo...@ei.sigma.se> on 2000/06/14 14:41:20 UTC

XSL-handler

Is there some form of XSL-module for mod-perl?
I want to send some XML as a response to the Apache-server and then have it
picked up by an Apache module that uses an XSL-template to render it in HTML
or WML based on the original URL. Is that possible?


Jonas Nordström


Re: XSL-handler

Posted by Joshua Chamas <jo...@chamas.com>.
Matt Sergeant wrote:
> 
> On Wed, 14 Jun 2000, Joshua Chamas wrote:
> 
> > I have heard complaints about XML::XSLT, but since I have
> > been working with Geert on the module these past months,
> > it has increased in rendering speed by a factor of 3,
> > there is a real OO interface, and DOM memory garbage
> > collection is production worthy.
> 
> There is no DOM memory garbage collection (you have to manually call
> dispose() on the DOM tree) - is that why it's production ready?
> 

The internal interface would not dispose of DOMs on its own
when appropriate before, and now the OO interface gives the 
developer hooks to call dispose on the internal result DOM
generated by the transformation.  

Also, there seems to have been some other large mem leak plugged 
in the past couple months, probably from changing some copy node 
behaviors &/or disposing of them properly, such that the process 
of just running the transformations barely leaks at all, and should
be fine for use under persistent mod_perl.

-- Joshua

Re: XSL-handler

Posted by Matt Sergeant <ma...@sergeant.org>.
On Wed, 14 Jun 2000, Joshua Chamas wrote:

> I have heard complaints about XML::XSLT, but since I have
> been working with Geert on the module these past months,
> it has increased in rendering speed by a factor of 3, 
> there is a real OO interface, and DOM memory garbage
> collection is production worthy.

There is no DOM memory garbage collection (you have to manually call
dispose() on the DOM tree) - is that why it's production ready?

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


Re: XSL-handler

Posted by Joshua Chamas <jo...@chamas.com>.
Jonas Nordström wrote:
> 
> Is there some form of XSL-module for mod-perl?
> I want to send some XML as a response to the Apache-server and then have it
> picked up by an Apache module that uses an XSL-template to render it in HTML
> or WML based on the original URL. Is that possible?
> 

If you want my latest .19 dev Apache::ASP with XSLT built-in,
just ask and I'll send it over.  With 

  PerlSetVar XSLT $file.xsl 

specified Apache::ASP runs XML files as ASP scripts, and then 
uses XML::XSLT to transform the XML output with the XSL file.

With PerlSetVar XSLTCacheSize specified, XSLT transformations
will be cached with Tie::Cache, for a huge speedup on XML
output that is unchanging.  The XSLT DOM is cached regardless.

I have heard complaints about XML::XSLT, but since I have
been working with Geert on the module these past months,
it has increased in rendering speed by a factor of 3, 
there is a real OO interface, and DOM memory garbage
collection is production worthy.

Let me know if you'd like to test things out.  The only
thing missing is adequate documentation.

-- Joshua
_________________________________________________________________
Joshua Chamas			        Chamas Enterprises Inc.
NodeWorks >> free web link monitoring	Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

Re: Apache::ASP on Unix

Posted by Julio Sánchez Fernández <j_...@stl.es>.

Paul Lindner wrote:

> No.  It does not use visual basic.  It uses Perl.  Otherwise, all of
> the same concepts are there: Application, Session, Request and
> Response objects, etc.

I have only read the source, but asp2php has an additional program
asp2perl that might be used to get a first cut of a translation into
Apache::ASP.  I have the feeling that it was written for ActiveState's
implementation.

Julio

Re: Apache::ASP on Unix

Posted by Paul Lindner <pl...@redhat.com>.
On Wed, Jun 14, 2000 at 02:36:44PM -0300, Marcelo Souza wrote:
> Hi,
> 
> 	Does anyone is using this module?

Many are..

> 	Is it full compatible with IIS for asp pages?

No.  It does not use visual basic.  It uses Perl.  Otherwise, all of
the same concepts are there: Application, Session, Request and
Response objects, etc.

> 	And what about security, is there any issue?

What issues?

-- 
Paul Lindner
plindner@redhat.com
Red Hat Inc.

Apache::ASP on Unix

Posted by Marcelo Souza <mp...@centroin.com.br>.
Hi,

	Does anyone is using this module?
	Is it full compatible with IIS for asp pages?
	And what about security, is there any issue?

Thanks,

- Marcelo




Re: XSL-handler

Posted by Matt Sergeant <ma...@sergeant.org>.
On Wed, 14 Jun 2000, Honza Pazdziora wrote:

> On Wed, Jun 14, 2000 at 02:27:45PM +0100, Matt Sergeant wrote:
> > 
> > Don't go to cpan yet - any version below 0.90 contains a deprecated
> > API. I'll be uploading a newer version to CPAN once I'm happy with the
> > examples and documentation (read: not yet). And axkit.org should come
> > online fairly soon once I update the documentation and things.
> 
> If I may, I'd suggest you send out as much of the new versions to CPAN
> as possible. People might become confised if they don't find the
> current version on CPAN. The 0.91/0.92 seems pretty stable for me.

My problem with this is, I'd like to add dependencies to at least one of
the XSLT parser modules to the MakeMaker parameters. Unfortunately
XML::XSLT seems broken in this regard for some reason beyond me, and
XML::Sablot isn't on CPAN, it's just on www.gingerall.com. As soon as
XML::XSLT puts out 0.22, I'll probably release another AxKit to CPAN.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


Re: XSL-handler

Posted by Honza Pazdziora <ad...@informatics.muni.cz>.
On Wed, Jun 14, 2000 at 02:27:45PM +0100, Matt Sergeant wrote:
> 
> Don't go to cpan yet - any version below 0.90 contains a deprecated
> API. I'll be uploading a newer version to CPAN once I'm happy with the
> examples and documentation (read: not yet). And axkit.org should come
> online fairly soon once I update the documentation and things.

If I may, I'd suggest you send out as much of the new versions to CPAN
as possible. People might become confised if they don't find the
current version on CPAN. The 0.91/0.92 seems pretty stable for me.

Just my $0.02.

Yours,

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
   .project: Perl, DBI, Oracle, MySQL, auth. WWW servers, MTB, Spain.
------------------------------------------------------------------------

RE: XSL-handler

Posted by Matt Sergeant <ma...@sergeant.org>.
On Wed, 14 Jun 2000, Kip Hampton wrote:

> Have a look at AxKit. It does what you are looking for and quite a bit more.
> 
> http://xml.sergeant.org/axkit/
> 
> Or visit a CPAN nearest you for a slightly dated version.

Don't go to cpan yet - any version below 0.90 contains a deprecated
API. I'll be uploading a newer version to CPAN once I'm happy with the
examples and documentation (read: not yet). And axkit.org should come
online fairly soon once I update the documentation and things.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


RE: XSL-handler

Posted by Kip Hampton <kh...@totalcinema.com>.
Have a look at AxKit. It does what you are looking for and quite a bit more.

http://xml.sergeant.org/axkit/

Or visit a CPAN nearest you for a slightly dated version.

Kip

-----Original Message-----
From: Jonas Nordström [mailto:Jonas.Nordstrom@ei.sigma.se]
Sent: Wednesday, June 14, 2000 8:41 AM
To: 'modperl@apache.org'
Subject: XSL-handler


Is there some form of XSL-module for mod-perl?
I want to send some XML as a response to the Apache-server and then have it
picked up by an Apache module that uses an XSL-template to render it in HTML
or WML based on the original URL. Is that possible?


Jonas Nordström