Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2005, 04:21 AM
Registered User
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting oracle value and storing in xslt variable

Hi,

Have a look at the xslt code that calls a stored procedure.
This procedure returns a value and the value is stored in the oracle variable res. I need to store the same in a xslt variable.

<jdbc:statement jdbc:transaction-type="auto" type="update">
<jdbc:sql>
 <xsl:text>declare res varchar2(500); begin res := </xsl:text>
 <xsl:text>\{Call </xsl:text>
 <xsl:value-of select="$procedure-name"/>
 <xsl:text>('</xsl:text>
 <xsl:value-of select="$cn"/>
 <xsl:text>','</xsl:text>
 <xsl:value-of select="document ('vnd.nds.stream:./config#XmlData')//action-indicators/object-add/text()"/>
 <xsl:text>)};</xsl:text>
 <xsl:text>end; </xsl:text>
</jdbc:sql>
/jdbc:statement>

Thanks in advance.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing HTML in a Variable Stevenm122084 XSLT 1 February 22nd, 2008 03:51 PM
Storing data to a variable Mikect VB Databases Basics 1 April 16th, 2007 01:53 PM
storing Javascript variable to ASP variable rupen Classic ASP Basics 5 April 10th, 2007 07:06 AM
Storing an include in a variable trufla Beginning PHP 1 May 21st, 2006 10:52 PM
Storing Images In Oracle & Manipulate Through VB 6 tutul128 Beginning VB 6 1 August 2nd, 2004 03:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.