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

RE: Call context within a named xsl:template

Subject: RE: Call context within a named xsl:template
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Tue, 13 Nov 2001 18:22:17 -0000
if within for in xsl
> (It's surprising how often people ask for features in XSLT 
> that I've never come across in any other programming language...)
> 
> Mike Kay

You spend too much time with xslt Mike ;-)

caller Property
See Also
function Statement

Applies To: Function Object
Requirements
Version 2
Returns a reference to the function that invoked the current function.

functionName.caller 
The functionName object is the name of any executing function.

Remarks
The caller property is only defined for a function while that function
is executing. If the function is called from the top level of a JScript
program, caller contains null.

If the caller property is used in a string context, the result is the
same as functionName.toString, that is, the decompiled text of the
function is displayed.

The following example illustrates the use of the caller property:

function CallLevel(){
   if (CallLevel.caller == null)
      return("CallLevel was called from the top level.");
   else
      return("CallLevel was called by another function.");
}
Requirements
Version 2

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml



 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.