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

Why does the addition of one (1) to a positiveInteger

Subject: Why does the addition of one (1) to a positiveInteger produce an integer?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Sun, 29 Aug 2010 15:43:29 -0400
 Why does the addition of one (1) to a positiveInteger
Hi Folks,

I have a function that has a parameter with a xs:positiveInteger datatype.
Within the function I add one (1) to the parameter:

<xsl:function name="f:iter">
    <xsl:param name="count" as="xs:positiveInteger" />


    <xsl:sequence select="f:iter($count + 1)" />


When I run this I get an error, "The argument to f:iter is xs:positiveInteger,
the supplied value is xs:integer"

What is the rationale for this? After all, if I add one (1) to any
positiveInteger the result must be a positiveInteger.


Current Thread


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.
First Name
Last Name
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.