[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Calling Saxon from a CGI script

Subject: Calling Saxon from a CGI script
From: "Bhaskar _" <bhaskarji@xxxxxxxxxxx>
Date: Wed, 20 Jun 2007 06:55:30 +0000
 Calling Saxon from a CGI script
Hi,

I am using the Saxon processor for java to transform an XML into HTML. The XSL expects the user to provide two parameter values as command line arguments to Saxon. So, my call to Saxon is something like this:
java net.sf.saxon.Transform -o report.html report.xml report.xsl param1=val1 param2=val2

The values val1 and val2 are inputs in an HTML form and would be available at run-time in a CGI perl script. Once I get these values, I basically want to call Saxon as above to perform the transformation. I am trying to use the 'system' command inside the CGI perl script but it doesn't work - I am seeing the following error in the webserver error logs:


*** glibc detected *** java: free(): invalid pointer: 0xbfc7cbb8 ***, referer: http://localhost/cgi-bin/report.cgi

I do set the correct CLASSPATH inside the CGI script.

Would appreciate any help with the above issue and/or other cleaner solutions.

PS: Before I started requiring command line arguments, I used to do this by just referring to the XSL stylesheet from within the XML document and my browser did the transformation.

Thanks,
Bhaskar

_________________________________________________________________
Real Estate classifieds on MSN - for free.www.yello.in http://www.yello.in/home.php?utm_source=hotmailtag&utm_medium=email&utm_content=in&utm_campaign=jun


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.