xsl-list
[Top] [All Lists]

Re: variable declaration

2002-11-18 10:23:12
However, if this is all there is to this portion of your transform, why use
variables at all? Why not just give:

<xsl:for-each
select="key('schedTimes',xalan:nodeset($new-schedule)/schedule/myschedule[no
t(myschedID = preceding-sibling::myschedule/myschedID)]/myschedID)">
 <xsl:call-template name="end-time-format">
  <xsl:with-param name="endtime-param" select="time"/>
 </xsl:call-template>
</xsl:for-each>

That's also wrong.

xalan:nodeset($new-schedule)/schedule/myschedule[not(myschedID = preceding-sibling::myschedule/myschedID)]/myschedID

can return many elements, on which Laura wants to iterate. In the above code, only the first of the elements is used.

Joerg


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