xsl-list
[Top] [All Lists]

FW: increasing variable?

2003-12-07 05:03:41
-----Original Message-----
From: Andreas L. Delmelle [mailto:a_l(_dot_)delmelle(_at_)pandora(_dot_)be]

<snip />
<!-- you want to 'halve' the SUBSTREAM_interior size, but only 
when it's in a SUBSTR with multiple SUBSTREAMs (correct? --in 
your example the last one isn't)

for the SUBSTREAM_interiors that are not in the first SUBSTREAM 
of the surrounding SUBSTR; these are the easiest -->


Seems like I walked into the trap I was warning about...

<xsl:template match="//SUBSTR[count(SUBSTREAM) &gt; 
1]/SUBSTREAM[position()!=1]/SUBSTREAM_interior">
  <xsl:copy>
    <xsl:value-of select="preceding::SUBSTREAM_interior[1]/offset

The computed value in the result node can't be used here!

The other templates seem ok, though...

Cheers,

Andreas

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



<Prev in Thread] Current Thread [Next in Thread>