Subject: Re: [xsl] Inserting global parameter value into xsl:function From: Clay Redding <credding@xxxxxxxxxxxxx> Date: Wed, 18 Jun 2003 15:27:44 -0400 |
I think you've hit a problem that Saxon is not actually checking the type of supplied stylesheet parameters against their declaration at the moment. If you are calling Saxon from the command line, then the supplied parameter is always a string, regardless of the xsl:param declaration.
The answer is to declare it as a string, and convert it to an integer using a casting function:
<xsl:param name="pos-as-string"/> <xsl:variable name="pos-as-integer" select="xs:integer($pos-as-string)"/>
Michael Kay
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Inserting global paramete, Michael Kay | Thread | [xsl] Unicode, Ricardo Saraiva |
RE: RE: RE: [xsl] grouping by uniqu, cknell | Date | RE: [xsl] xsl:number problem, Wendell Piez |
Month |