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

variable declaration

Subject: variable declaration
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Mon, 18 Nov 2002 15:38:20 -0000
variable declaration in unix
hello people,
I have a strange problem. I have the following structure in my XSL file.

  <xsl:for-each
select="xalan:nodeset($new-schedule)/schedule/myschedule[not(myschedID =
preceding-sibling::myschedule/mychedID)]">

   <xsl:variable name="schedule-on-times"
select="key('schedTimes',myschedule/myschedID)"/>
   <xsl:for-each select="$schedule-on-times">

    <xsl:variable name="my-endtime">
      <xsl:call-template name="end-time-format">
       <xsl:with-param name="endtime-param" select="time"/>
      </xsl:call-template>
     </xsl:variable>
     <xsl:value-of select="$my-endtime"/>
      </xsl:for-each>
   </xsl:for-each>

The XSL is like above.
This works perfectly fine in win2000 server.
but it fails on unix. The way it fails is again quite strange.it gives
invocation target exception. when this is template is called.
I then took the code from the template "end-time-format" and pasted this in
the main code. and took off the variable declaration from the code and used
it straight. and it seems to be working fine that way. So my conclusion was
that it is failing because of this kind of a variable declaration?? That
sounds quite strange to me.I only wanted to make the code neat by deviding
it into templates.
Would this be a bug in XALAN that it behaves weird with UNIX?
anyone came across similar situation???
Thanks Very Much

 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.