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

Re: Calculating cumulative values - another call for h

Subject: Re: Calculating cumulative values - another call for help
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 30 Aug 2007 16:58:43 +0100
Re:  Calculating cumulative values - another call for h
On 8/30/07, Simon Shutter <simon@xxxxxxxxxxx> 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

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.