Re: [xsl] [Accumulators] Another stupid question

Subject: Re: [xsl] [Accumulators] Another stupid question
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Oct 2020 21:59:44 -0000
On 06.10.2020 23:52, Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx wrote:
<xsl:sequence select="$value[1] + $height"/>

No need to use [1] here:


<xsl:sequence select="$value + $height"/>

I made the accumulator xs:double+ temporarily because I thought you also want the block height in addition to y in the result, therefore I returned the sequence of $value[1] + $height, $height. In the template that matches block, I then referred to accumulator-after('blockHeight')[1] and accumulator-after('blockHeight')[2], respectively, in order to fill y and height.
But then I saw that you don't want a height attribute added to block and reverted the accumulator to cardinality one.


Current Thread