Re: : Yet more code (Was: Re: A nifty code sample to share)

2002-09-26 Thread Josh Chamas
[EMAIL PROTECTED] wrote: Hi Josh , my $xml_data; $xsl_data = Test.xsl; $xml_data = Test.xml; my $xslt_data_ref = $Server-XSLT(\$xsl_data, \$xml_data); print $$xslt_data_ref; $xsl_data $xml_data need to be strings, not filenames, as in: open(XML, 'Test.xml') || die(can't

RE: : Yet more code (Was: Re: A nifty code sample to share)

2002-09-24 Thread Raghu . Nalamada
Hi Josh , Thanks for your help . Atlast Resolved XSLT error , I had to include /Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run//pd/libxslt/1.0.20/lib in LD_LIBRARY_PATH. I generate XML from SQL using perl module XML_RDB . Using Apache::ASP i like to display the output

Re: : Yet more code (Was: Re: A nifty code sample to share)

2002-09-24 Thread Josh Chamas
[EMAIL PROTECTED] wrote: Hi Josh , Thanks for your help . Atlast Resolved XSLT error , I had to include /Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run//pd/libxslt/1.0.20/lib in LD_LIBRARY_PATH. I generate XML from SQL using perl module XML_RDB . Using Apache::ASP i like

: Yet more code (Was: Re: A nifty code sample to share)

2002-09-23 Thread Raghu . Nalamada
Hi All , Is there any way in Apache::ASP to dynamically give a XSL file rather setting to default like template.xsl in .htaccess file as given in eg directory. Also iam seem to be having erros when using LIBXSLT XSLT/XML processing error: Can't locate object method new via

RE: : Yet more code (Was: Re: A nifty code sample to share)

2002-09-23 Thread Raghu . Nalamada
Hi Josh, I need to add to different xsl file depending upon the user's request . Yes LibXSLT is installed , When i add to httpd.conf it gives me the error #

Re: : Yet more code (Was: Re: A nifty code sample to share)

2002-09-23 Thread Josh Chamas
[EMAIL PROTECTED] wrote: Hi Josh, I need to add to different xsl file depending upon the user's request . I believe the $Server-Config() method that I mentioned should work for you. Yes LibXSLT is installed , When i add to httpd.conf it gives me the error

Re: Yet more code (Was: Re: A nifty code sample to share)

2002-09-22 Thread Brat Wizard
Of course, you could also put just the info to be included into a separate file and allow it to be included at a judicious moment... (nah, that would be too easy ;) But the one thing that _doesn't_ allow for, and the reason why I myself have been working on the problem-- is putting together

Re: Yet more code (Was: Re: A nifty code sample to share)

2002-09-21 Thread Brat Wizard
A follow-up to my last post... adding this line to the render func: $tmpl =~ s/__\((.*?)\)__/%=($1)%/gm; # fixup embedded tests Allows this construct to be used: __(__F_ONSALE__?'YES':'NO')__ These constructs also work as expected: Item on sale? Yes or No: __(__F_ONSALE__?'YES':'NO')__

Re: Yet more code (Was: Re: A nifty code sample to share)

2002-09-20 Thread Brat Wizard
Yes, but extrordinarily easy-to-do and it didn't break nuthin ;) On Friday 20 September 2002 02:27 pm, you muttered: Brat Wizard wrote: # picture else { $$hash{$token} = sprintf($fmt, $$hash{$token}); } }

Re: Yet more code (Was: Re: A nifty code sample to share)

2002-09-20 Thread Brat Wizard
Right, its almost as if one would want a pre-processing stage of not the output, but of the content. The current model was not built to be easily extendable to this as there is only one sub per XMLSubs that gets called, but what you would really want is something like: sub my::sub_pre()