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

Re: extension functions

Subject: Re: extension functions
From: James Clark <jjc@xxxxxxxxxx>
Date: Mon, 08 Nov 1999 13:37:29 +0700
arguements for a product extension

Earl Bingham wrote:
> 
> I have been wanting to create an extension function that receives a name
> 
> value pair and does some processing and returns a specific value. The
> example given by James Clark shows how to use the constructor for
> then returning a string, but I was having difficulty passing arguements
> to
> the class.
...
>  <xsl:variable name="firstVar">Name Variable</xsl:variable>
>  <xsl:variable name="secVar">Value Variable</xsl:variable>

This makes $firstVar and $secVar be result tree fragments not strings. 
XT doesn't currently do any automatic conversion for you when calling
Java, so if your Java functions expect strings, you need to convert them
to strings yourself using eg string($firstVar).

James



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.