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

Re: Inserting global parameter value into xsl:function

Subject: Re: Inserting global parameter value into xsl:function
From: Clay Redding <credding@xxxxxxxxxxxxx>
Date: Wed, 18 Jun 2003 15:27:44 -0400
clay redding
Thanks Michael, that worked perfectly.

Clay

Michael Kay wrote:

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





XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.