Hi Josh ,

         Though i can successfully generate xslt.xml using LibXSLT . 

         When i run script like below
#########################################################################################################################
#! ./perl asp

<% 
my $xsl_data;
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;
                
%>

#########################################################################################################################
         It errors out with the error as though it is implictly using XML::XSLT
#######################################################################################################################
failed to load XML::XSLT 0.32: Can't locate XML/XSLT.pm in @INC (@INC contains: 
/home/nalamara/myapache/htdocs/asp/eg//. 
/sbcimp/run/pd/apache_modules/1.3.19/mod_perl/1.25+perl-5.005_03/lib/sun4-solaris 
/sbcimp/run/pd/apache_modules/1.3.19/mod_perl/1.25+perl-5.005_03/lib 
/Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run/pd/cpan/5.6.1-eval/lib 
/sbcimp/run/pd/cpan/5.6.1-2002.06/lib /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris 
/sbcimp/run/pd/perl/5.005_03/lib 
/sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris 
/sbcimp/run/pd/perl/5.005_03/lib/site_perl . /sbcimp/run/pd/apache/1.3.19/ 
/sbcimp/run/pd/apache/1.3.19/lib/perl) at (eval 43) line 3. BEGIN failed--compilation 
aborted at (eval 43) line 3. , 
/Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run/pd/cpan/5.6.1-eval/lib/Apache/ASP.pm 
line 1556 
#######################################################################################################################
  
       I have also tried to comment the below in asp.config
#if($0 =~ /\.xml$/) {
#  $Config{XSLT} = 'template.xsl'
#}

       Is there any other config i need to change in order to LibXSLT to make this 
work or the syntax iam using is wrong


Thanks

Raghu

-----Original Message-----
From: Josh Chamas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 1:35 AM
To: Nalamada, Raghu
Cc: [EMAIL PROTECTED]
Subject: Re: : Yet more code (Was: Re: A nifty code sample to share)


[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 to display the output depending upon xsl choosen.
> 
>          As you have indicated below can i use something like 
> 

Use $Server->Config('XSLT', 'test.xsl') to change the XSL document
at runtime.

If you have some arbitrary XML & XSL that you want to transform,
you may use $Server->XSLT() method, and just pass in the raw data.
Please see http://www.apache-asp.org/objects.html#%24Server-%3EXSL7df794aa
for more about this method.

>         The name of the xml file generated would be different according to choices 
>made . Not sure what the syntax
> should be in calling the XML file .

The normal way the XSLT tranformation is done is the output of the
ASP script is treated as the source XML, and then you specifiy the
XSL file with the XSLT config parameter.  The idea here was that
you could have a global XSL renderer & each of your ASP scripts
would act as the source XML data, so that in fact your ASP scripts
could even be literally source XML data.

Regards,

Josh
________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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

Reply via email to