You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by James Neff <jn...@tethyshealth.com> on 2005/07/15 18:32:26 UTC

Using Saxon8 XSLT parser axis service from vb.net client

Greetings,

 

I have a Java class that accepts two String parameters and returns a String.
One parameter is a XSLT stylesheet and the other is an XML source document.
The class will then use Saxon8 to transform the XML document using the
stylesheet.

 

I can run this class from the command line just fine when I pass in
filenames for the two input parameters.  I had to modify my class a bit to
then read in the files and perform the transformation (using java.io.File).
But what I want is to pass it in the actual documents as a string parameter
and I'm having problems doing this from my vb.Net client.

 

I keep getting this error message when I try to call the method to transform
from my vb.Net client:

 

An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll

 

Additional information:
javax.xml.transform.TransformerConfigurationException: Failed to compile
stylesheet. 1 error detected.

 

 

This means the Saxon object is getting instantiated correctly but doesn't
like the stylesheet I'm passing in as one of the input string parameters.

 

The syntax of the stylesheet is fine as I copied out of my vb.Net
application into a file and was able to run the class using the file.  

 

Could this be an encoding issue or a problem with how Vb.Net is passing a
string into my Axis application?

 

Please help.

 

Thanks,

 

James Neff

(Technology Specialist)

 

------------------------------------------

Tethys Health Ventures

4 North Park Drive, Suite 203

Hunt Valley, MD  21030

 

410-771-0692

cell:  443-865-7874

 

www.tethyshealth.com