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

Re: Java Extension Functions and XT

Subject: Re: Java Extension Functions and XT
From: James Clark <jjc@xxxxxxxxxx>
Date: Wed, 28 Jul 1999 14:27:48 +0700
java function seed
Jon Smirl wrote:
> 
> I'm using xsl:variable to hold the return value of logon:seed().
> logon:seed() is a function that will change values every time it is called.
> The problem I'm having is that when I refer to my variable, $seed, the
> function is begin called.
> 
> This is not what I want, I want a snapshot of logon:seed() in $seed, not a
> link to a live function call. I tried adding string(logon:seed()) but it
> didn't help.
> 
> What is the right behavior, a snapshot or a live link?
> How do I get a snapshot?
> 
> Jon Smirl
> jonsmirl@xxxxxxxxxxxx
> 
> Example code....
>   <xsl:variable name="seed"><xsl:value-of
> select="string(logon:seed())"/></xsl:variable>

Do

<xsl:variable name="seed" select="logon:seed()"/>

If you don't use the select attribute, you're binding $seed to a result
tree fragment, which you almost certainly don't want.

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.