xsl-list
[Top] [All Lists]

Re: [xsl] [Accumulators] Another stupid question

2020-10-06 16:59:49


On 06.10.2020 23:52, Imsieke, Gerrit, le-tex 
gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de 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.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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