Re: Compiling

2005-03-24 Thread Christian Jaeger
Why not use the bytecode compiler instead, or PAR::Filter::*. But I guess the real question is what to do with xsp files which defer perl code generation to load time. Christian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Removing eval from AxKit?

2005-02-09 Thread Christian Jaeger
At 15:40 Uhr +0100 09.02.2005, Arne Skjaerholt wrote: Still, I'm not afraid of getting my hands dirty, so the following occured to me: maybe it would be possible to alter the inner workings of the taglibs so that instead of evaling code all the time, It's not eval'ing all the time, but only when th

Re: How to return XML code from taglib?

2005-01-31 Thread Christian Jaeger
At 11:36 Uhr +0100 31.01.2005, Lars Skjærlund wrote: But I cannot figure out how to return the string literal - ie., with the XML tags intact. @EXPORT_TAGLIB= ('yourfunc():as_xml=>1'); then just return the xml string from the function. Christian. PS. you're using an invalid To address: To: ^--

Re: [RFC] Need A Name: Yet Another Shopping Cart

2004-12-13 Thread Christian Jaeger
At 14:14 Uhr -0800 09.12.2004, Michael A Nachbaur wrote: (..) though I might change it as the Package::Names::Are::Getting::Way::Too::Long. There are two tricks I'm sometimes using with long package names: (works with OO packages only) - global namespace aliasing. Just do: *Foo::= *AxKit::Ap

Re: Success Story

2004-09-27 Thread Christian Jaeger
At 23:28 Uhr +0100 27.09.2004, Matt Sergeant wrote: - Memory consumption is a pain (I'm assuming you are already using a proxy in front of the mod_perl apache? mod_accel (apache 1.x) does work very well for me, though my installations aren't really large scale) Christian. --

XML::LibXML/XSLT bug: escaping in comments

2004-09-09 Thread Christian Jaeger
Hello (Note: because I'm a bit too lazy to narrow this down to a smaller test case ATM, and since maybe someone here knows more about it, I'm posting here first instead of directly to rt.cpan.org) There must be a bug somewhere in handling escaping of strings inside comments. When trying out the

Re: [patch] sawa exception bug

2004-09-08 Thread Christian Jaeger
BTW, one should generally also local'ize $@ in any code, at least like in: sub DESTROY { ... local $@; eval { ... }; if ($@) } eval in destructors is particularly nasty, since those without 'local' wipe out $@ without giving you any chance to look at the error (short of abusing

[patch] sawa exception bug

2004-09-08 Thread Christian Jaeger
This makes "SAWA::Error=HASH(0xdeadbeaf)" error messages go away: --- SAWA-0.79/lib/SAWA/Machine.pm~ 2004-08-27 13:15:37.0 +0200 +++ SAWA-0.79/lib/SAWA/Machine.pm 2004-09-08 18:24:42.0 +0200 @@ -120,7 +120,8 @@ if ( $@ ) { eval "require $handler;";

Re: Announce: O'Reilly's XML Publishing with AxKit

2004-07-22 Thread Christian Jaeger
At 1:15 Uhr -0700 22.07.2004, Kip Hampton wrote: GARY Hoffman wrote: Has anyone used AxKit in conjunction with DreamWeaver or GoLive or a similar program with respect to creating dynamic content for an otherwise static site? what we have done for the publishing system used at www.ethlife.ethz.ch i

Fwd: [OSCOM] Final Call for Proposals (OSCOM 4 with Apache Tracks)

2004-07-22 Thread Christian Jaeger
Date: Wed, 21 Jul 2004 22:45:11 +0200 From: Michael Wechner <[EMAIL PROTECTED]> To: general <[EMAIL PROTECTED]> Subject: [OSCOM] Final Call for Proposals (OSCOM 4 with Apache Tracks) Reply-To: [EMAIL PROTECTED] Dear all This is the final call for proposals for OSCOM 4 with Apache Tracks. The submit

emacs XSP mode?

2004-06-19 Thread Christian Jaeger
Hello Has anyone written or tried writing an xml/perl(|java) multi mode for (gnu/X)emacs, probably using mmm-mode? If not, I'll consider creating one. (I've not really tested mmm-mode much yet, though, so if it turns out being slow or not nice during editing, I'll maybe not do it.) Christian.

swiss axkit users?

2004-05-29 Thread Christian Jaeger
Hello Are there any swiss AxKit users other than me and my buddies? I'm living in Zurich, and would like to meet (or visit) you! :) Cheers Christian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: xsl:call-template question

2003-12-03 Thread Christian Jaeger
ok, Kip explained me everything in irc. (Looks like I'm still an XSLT newbie - not that this would surprise me. But to be fair to myself: it looks like even some article authors haven't understood xsl, like of the one I linked in my mail) Correct is: ...

xsl:call-template question

2003-12-03 Thread Christian Jaeger
Hello, I can't seem to make passing params to template calls work. Well, maybe I'm even asking for too much: I want to pass not only a string to the template, but a whole tree. Does that work at all? What I want to do is: reuse the "top-level" template (the one outputting the , and head/foote

1h Time::Piece time shift

2003-11-11 Thread Christian Jaeger
Hello 'This the right place for this? use strict; use Time::Piece; my $time=time(); print "time=$time\n"; my $d= Time::Piece->strptime($time,'%s'); my $epoch= $d->epoch; print "epoch=$epoch\n"; print "diff: ".($time-$epoch)."\n"; __END__ time=1068561586 epoch=1068565186 diff: -3600 Why? Same thin

Re: Problems with Perform and Netscape 4

2003-11-06 Thread Christian Jaeger
At 22:56 Uhr + 05.11.2003, Matt Sergeant wrote: Hmm, PerForm from version 1.8.2 (The PerForm.pm I'm using has $VERSION="1.8.3", and AxKit::XSP::WebUtils $VERSION 1.6) uses a Redirect header, not a Location header. You know what? I've changed the last parameter to AxKit::XSP::WebUtils::redire

Problems with Perform and Netscape 4

2003-11-05 Thread Christian Jaeger
Hello I'm having problems with perform (file upload) and Netscape 4(.77 on macos 9): after hitting "upload", netscape displays "The document containted no data. Try again later, or contact the server administrator"; after clicking "OK", the redirect is executed and the target page displayed as it

Perform, and xsl:import puzzles

2003-10-11 Thread Christian Jaeger
Hello I'm using AxKit::XSP::PerForm for the first time. - the included perform_html.xsl file is incomplete, it misses the following template: - I have problems with xsl:import. Ok, there are 3 ways using perform_html.xsl: (1) using it directly: cp perform_html.x

Re: Provider problems

2003-10-09 Thread Christian Jaeger
At 21:38 Uhr +0200 09.10.2003, Christian Jaeger wrote: sub get_styles { my $self=shift; if ($$self{cjfile_media} eq 'html') { $$self{apache}->content_type("text/html"); } my $res= $myowntypemap{ $$self{cjfile_sourcetype} }{$$self{cjfile

Provider problems

2003-10-09 Thread Christian Jaeger
It seems this mail hasn't made it to the list. Cheers Christian. Date: Tue, 7 Oct 2003 14:45:09 +0200 To: [EMAIL PROTECTED] From: Christian Jaeger <[EMAIL PROTECTED]> Subject: Provider problems Hello I'm having many troubles and unclarities about providers. The attached prov

ptkdb & axkit

2003-10-04 Thread Christian Jaeger
Has anyone ever got ptkdb to run under apache/axkit? I spend days about a year ago. Mainly had problem with environment vars being overwritten by apache, thus ugly scripty trying to recreate the env to make tk work but never did. Thanks for any tips Christian. --

Re: Berkeley DB XML

2003-06-02 Thread Christian Jaeger
At 20:29 Uhr -0700 01.06.2003, Kip Hampton wrote: Basically, it appears that If you follow the "Building Berkeley DBXML for UNIX" doc from the dbxml reference docs to the letter (including versions and build flags) then it should go okay, I guess. This is (basically) what I did (I used the debian

Re: Berkeley DB XML

2003-06-02 Thread Christian Jaeger
Hello I've tried to compile it on a debian woody machine with some parts recompiled from debian unstable. I get this warning on configure: ... checking unicode support in flex... configure: WARNING: not found. Pathan requires a version of flex supporting the -U (16-bit unicode) flag if you nee

Segfault-free AxKit/libxml/libxslt combination?

2003-04-03 Thread Christian Jaeger
Hello Has anyone found a segfault free combination of libxml/LibXML/libxslt1/LibXSLT(/Axkit) ? I'm currently using the following, on linux x86: - installed from CVS: AxKit: '/usr/local/lib/perl/5.6.1/AxKit.pm', VERSION 1.6_02 # $Id: AxKit.pm,v 1.41 2003/02/07 12:20:47 matts Exp $ - installed fr

Re: Dynamic ordered inputs for taglibs

2003-03-31 Thread Christian Jaeger
At 7:54 Uhr +0100 01.04.2003, Matt Sergeant wrote: On Mon, 31 Mar 2003, Christian Jaeger wrote: It would be cool if one could do something like: > Bleh i.e. declare a list of inputs (with possibly dynamic values), and get those inputs in the same order as fun

Dynamic ordered inputs for taglibs

2003-03-31 Thread Christian Jaeger
It would be cool if one could do something like: Bleh i.e. declare a list of inputs (with possibly dynamic values), and get those inputs in the same order as func's arguments. Currently we get a syntax error in the TaglibHelper-generated perl code. Only seems to be supported, b

Re: Big EXSLT date function and LibXMLSupport problems

2003-03-30 Thread Christian Jaeger
should just experiment a bit more with the exslt builtins. Looks like we don't understand it yet. (We would still be glad to get a working example of a .xsl sheet that makes use of those functions.) Christian. simon On Sunday, March 30, 2003, at 07:28 AM, Christian Jaeger wrote: Could

Re: Big EXSLT date function and LibXMLSupport problems

2003-03-30 Thread Christian Jaeger
or on CVS AxKit as in 1.6 ("Function XXX not found"). Christian On Sunday, March 30, 2003, at 07:28 AM, Christian Jaeger wrote: For some reason, the current CVS AxKit does *not work at all* with exslt function libs because it looks like the new LibXMLSupport.pm c

Re: Sloooow xml parsing in a setup with current CVS AxKit - solved

2003-03-30 Thread Christian Jaeger
At 14:31 Uhr +0200 30.03.2003, Christian Jaeger wrote: For some reason, it takes 10 seconds to parse a 100k xml string returned from an Taglib function Problem solved: In the .xsp file there was given a stylesheet directive with type application/xsp -> thus the result was parsed as xsp ag

In need for an as_libxmltree output mode in TaglibHelper

2003-03-30 Thread Christian Jaeger
We are building XML::LibXML trees inside some Taglibs. I'd like to have those trees attached directly to the output. Instead of an unnecessary ->toString(1) | parse double transform. Any idea/hints to how to implement that? I'm willing to implement it. Christian. --

Sloooow xml parsing in a setup with current CVS AxKit

2003-03-30 Thread Christian Jaeger
For some reason, it takes 10 seconds to parse a 100k xml string returned from an Taglib function with current cvs axkit. This is a 1ghz athlon with 256MB RAM. I've never seen this on our live server running axkit 1.5.2. Any idea? Christian.

Big EXSLT date function and LibXMLSupport problems

2003-03-30 Thread Christian Jaeger
Hello We are having a hard time trying to get exslt date functions to work, and have run out of ideas. Could anyone look at those files and tell us what's wrong? Look at the Date.xml, Datetext.xsl, and machine*/error.txt files at the following location: http://pflanze.mine.nu/~chris/axkit/exsl

Re: Resistance of TaglibHelper against user errors

2003-03-30 Thread Christian Jaeger
At 10:22 Uhr +0100 30.03.2003, Matt Sergeant wrote: The problem is caused by the fact that TLH can't know if a particular tag is a function tag or an attribute/parameter tag. This could probably be handled a lot better than it is right now, it's just a matter of programming after all. OK. Thoug

Resistance of TaglibHelper against user errors

2003-03-29 Thread Christian Jaeger
Hello We are using TaglibHelper for more than 1.5 years now. It has always been mainly my colleagues who are writing the taglibs, and they have quite many times come to me with a problem they couldn't solve. The problem is then that in most cases the error message was just an error in the gene

RE: [Business] Anyone need AxKit Hosting?

2002-12-10 Thread Christian Jaeger
Simply using another apache instance for each client and proxying requests to them from a mod_accel enabled main intance should be enough to provide basic security. Write separate SysV startup scripts for each of them using 'su user' if started as root, and separate configuration files (httpd -

Re: Can AxKit::Exception to xml translation be done in OO way?

2002-06-29 Thread Christian Jaeger
. I've promised for a long time to publish the patch, the exception syntax filter and base classes, but didn't because of hard to solve problems in the filter, but I'll make an effort now and do it over this weekend. Christian. -- Christian Jaeger Programmer & System Engineer

OSCOM - Final call for participants

2002-06-11 Thread Christian Jaeger
pation > >http://www.oscom.org/conferences/sanfrancisco2002/cfp.html > >Please send your proposal within the next week to [EMAIL PROTECTED] >DEADLINE is Friday June 14. > >Thanks and all the best > >Michael >http://www.oscom.org -- Christi

Re: Segfaults from a different kind

2002-06-02 Thread Christian Jaeger
At 6:08 Uhr +0200 02.06.2002, Melvyn Sopacua wrote: >However - I can't get a core dump, and in gdb run -X /path/to/conf doesn't >create a socket somehow. If you start apache as root and let it change userid to nobody (or whatever), most OS's won't drop core dumps because of security considerati

Re: AxKit && Apache 2.0

2002-05-12 Thread Christian Jaeger
At 12:02 Uhr +0200 09.05.2002, Jörg Walter wrote: >On Wednesday, 08. May 2002 22:50, Matt Sergeant wrote: > >> One proposal I have for AxKit 2.0 would be to not use mod_perl at all, but >> to customly embed perl. The advantage would be we wouldn't need mod_perl >> any more, and we could customi

Re: ANNOUNCE: AxKit 1.5

2001-12-31 Thread Christian Jaeger
Happy new year :) christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]