[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why does the addition of one (1) to a positiveInte
At 2010-08-29 15:43 -0400, Costello, Roger L. wrote:
I have a function that has a parameter with a xs:positiveInteger datatype. Within the function I add one (1) to the parameter: False. An integer *type* is more general than the positiveInteger *type*, thus when you add the two the result is the more general of the two, which is integer. And since the integer is too general for the parameter type, there is the error. So, not only do you need: <xsl:sequence select="f:iter($count + xs:positiveInteger(1))" /> .... but wherever you are calling f:iter() for the first time, if you are doing: <xsl:value-of select="f:iter(3)"/> .... you will get the same problem and you need to say: <xsl:value-of select="f:iter(xs:positiveInteger(3))"/> I hope this helps. . . . . . . . . . . Ken -- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|