xsl-list
[Top] [All Lists]

RE: [xsl] Calculating cumulative values - another call for help

2007-08-30 09:35:58
Sorry - I should have been more clear.  Could one use something like
count(ancestor::set) instead? 

-----Original Message-----
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com] 
Sent: August 30, 2007 8:59 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Calculating cumulative values - another call for help

On 8/30/07, Simon Shutter <simon(_at_)schemax(_dot_)com> wrote:
Andrew,

When I run your stylesheet against my input I get a Saxon error where 
it is creating attribute "y3".  The error is shown below.  The string 
"n" is the value of the attribute "id" for the set element in the 
input.  Is it because "xs:integer(parent::set/@id - 1)" precludes the 
use of non-numerical id values?


When you say "1..n" you don't normally mean "n" literally(!), but some
unspecified higher number.

Change "n" to be a number - say 3 in your example, and it'll work.


--
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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