[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [Accumulators] Another stupid question

Subject: Re: [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
Re:  [Accumulators] Another stupid question
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.