Java Extension Functions and XT

Subject: Java Extension Functions and XT
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Wed, 28 Jul 1999 02:50:35 -0400
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>
  <html>
  <head>
   <link rel="STYLESHEET" type="text/css" href="/common/bugbase.css" />
   <script src="/common/md5.js"></script>
   <script>
   function submit() {
    form1.user.value = username.value;
    form1.pass.value = MD5("<xsl:value-of
select="logon:crypt(string($seed))"/>" + MD5(password.value));
    form1.submit();
   }
   </script>
  </head>
  <body>
    <form method="post" id="form1" name="form1">
     <input type="hidden" name="user" id="user" />
     <input type="hidden" name="pass" id="pass" />
     <input type="hidden" name="seed" value="{$seed}" />
...........


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


Current Thread