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

Re: Passing XML Tree to a java method as String.

Subject: Re: Passing XML Tree to a java method as String.
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sat, 15 Jul 2006 18:10:53 +0530
java passing xml
On 7/15/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
By saying it "worked all right", I think you mean it did something which
matched your guess as to what the OP wanted. In general though I don't think
that the effect of calling the Java toString() method on a Saxon node is
well-defined or predictable.

Earlier, I have successfully invoked a SOAP service using this method. The XSLT 2.0 stylesheet made the SOAP calls, using Saxon 8.0.

In my case also, SOAP envelope was wrapped in a variable like this:

<xsl:variable name="SoapEnvelope">
  <env:Envelope ...

  </env:Envelope>
</xsl:variable>

I don't remember exactly, but I think I used write(java.lang.String
str) method of java.io.OutputStreamWriter class (from within the XSLT
stylesheet) to make the SOAP calls.

Regards,
Mukul

Michael Kay
http://www.saxonica.com/

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.