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

function overloads

Subject: function overloads
From: "Merrilees, David" <David.Merrilees@xxxxxxxxxxxx>
Date: Mon, 21 Mar 2011 14:12:43 +0000
 function overloads
Hi

I've defined a function than created an overload:

<xsl:function name="f:action-form" as="element()">
        <xsl:param name="id" as="xs:string" />
        <xsl:param name="actionName" as="xs:string" />
        <xsl:param name="controllerName" as="xs:string" />
        <xsl:param name="method" as="xs:string"/>
        <xsl:param name="routeValues" as="node()" />
        <xsl:apply-templates select="html:action-form($Html, $id, if
(string-length($method) &gt; 0) then $method else 'post', $actionName,
$controllerName, f:list($routeValues))" mode="helper"/>
</xsl:function>

<xsl:function name="f:action-form" as="element()">
        <xsl:param name="id" as="xs:string" />
        <xsl:param name="actionName" as="xs:string" />
        <xsl:param name="controllerName" as="xs:string" />
        <xsl:param name="method" as="xs:string" />
        <xsl:apply-templates select="html:action-form($Html, $id, if
(string-length($method) &gt; 0) then $method else 'post', $actionName,
$controllerName)" mode="helper"/>
</xsl:function>

When I run the transform, I get the following static error:

{"Required item type of 5th argument of html:action-form() is element();
supplied value has item type xs:string"}

I don't understand this; the functions are not executed anywhere. Am I missing
something?

Thanks

This is a confidential email. Tesco may monitor and record all emails. The
views expressed in this email are those of the sender and not Tesco.

Tesco Stores Limited
Company Number: 519500
Registered in England
Registered Office: Tesco House, Delamare Road, Cheshunt, Hertfordshire EN8
9SL
VAT Registration Number: GB 220 4302 31

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.