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

RE: Call java function to do background work

Subject: RE: Call java function to do background work
From: "Echlin, Robert" <Robert.Echlin@xxxxxxxxxxxxx>
Date: Tue, 12 Jun 2012 15:38:10 +0000
RE:  Call java function to do background work
Hi Ming,
I would return a pass/fail result from the Java, if you care what happens if
the database is offline or your database manipulation otherwise fails.
Then you can use an <xsl:if> to wrap your call, and do something useful if it
fails - like stop right now and report.

Rob


-----Original Message-----
From: Ming Yu [mailto:my600080@xxxxxxxxx]
Sent: Tuesday, June 12, 2012 11:08 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Call java function to do background work

Sorry if this is a very simple question but I couldn't seem to come up with a
neat solution.

During xslt transformation, I need to call a java function to do some
background work (such as adding some values to the database, etc). The java
function doesn't need to return anything. At this moment, I just use the
normail <xsl:value-of> tag to append to a variable. Since it doesn't return
anything, the variable value stays the same.

Is there a neater to achieve this goal?

Thanks a lot!

Ming

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.