Subject: [xsl] variable declaration From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx> Date: Mon, 18 Nov 2002 15:38:20 -0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] MIME Type for XSL, Wendell Piez | Thread | RE: [xsl] variable declaration, Stuart Brown |
Re: [xsl] MIME Type for XSL, G. Ken Holman | Date | [xsl] method='text' ... whitespace , DPawson |
Month |