FW: [xsl] increasing variable?

Subject: FW: [xsl] increasing variable?
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Sun, 7 Dec 2003 13:03:41 +0100
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:a_l.delmelle@xxxxxxxxxx]
> 
<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


Current Thread