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

RE: Templates with same name but different argument pa

Subject: RE: Templates with same name but different argument param names
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 14:18:33 +0100
xsl templates same name
The XSLT 1.0 spec doesn't say very much in section 6, Named Templates

http://www.w3.org/TR/xslt#named-templates

, but it does say this:

It is an error if a stylesheet contains more than one template with the same
name and same import precedence.

You indicated you weren't sure whether this was a valid question for the
list. I think that before asking *any* question on the list, you should take
some steps to find out the answer from reference sources. If you can't find
the answer, then it becomes a valid question.

Michael Kay
http://www.saxonica.com/ 


> -----Original Message-----
> From: Kevin L. Cobb [mailto:kevin.cobb@xxxxxxxxxxxx] 
> Sent: 22 September 2005 14:03
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Templates with same name but different 
> argument param names
> 
> Wonderng what the outcome of this scenario would be in XSLT and hoping
> that the old saying that there are NO stupid questions is in play on
> this list ;)
> 
> 
> 
> <xsl:template name="lookupValue">
>    <xsl:param name="fieldID"/>
> 
>    <!-- Lookup the code using the filedID -->
> </xsl:template>
> 
> <xsl:template name="lookupValue">
>    <xsl:param name="facilityID"/>
> 
>    <!-- Lookup the code using the facilityID
> 	  different logic here  -->
> </xsl:template>
> 
> 
> Will specifying the parameter names differently (fieldID versus
> facilityID) in two templates that have the same name essentailly make
> these two templates distinct? Getting ready to test the theory but
> thought I would bust off a quick e-mail to the list first. 
> 
> -Kevin

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.