xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Call java function to do background work


Subject: RE: [xsl] Call java function to do background work
From: "Echlin, Robert" <Robert.Echlin@xxxxxxxxxxxxx>
Date: Tue, 12 Jun 2012 15:38:10 +0000

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: [xsl] 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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor