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

Re: user-defined XSLT functions and stylesheet variabl

Subject: Re: user-defined XSLT functions and stylesheet variables?
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 20 Jun 2021 19:18:17 -0000
Re:  user-defined XSLT functions and stylesheet variabl
On Sun, Jun 20, 2021 at 04:42:39PM -0000, Michael Kay mike@xxxxxxxxxxxx scripsit:
> I have occasionally wondered whether the ban on using tunnel parameters inside a function is perhaps rather paternalistic. In many ways, accessing tunnel parameters is "less evil" than accessing global variables, so if functions are allowed to do the latter, they should allowed to do the former. Code that binds the current document to a tunnel parameter is more adaptable and reusable than code that binds it to a global variable.

I find myself wondering if we should not allow either and do some sort
of per-namespace function context that has to be explicitly defined.

(Which is not to say access to tunnel parameters from functions wouldn't
be welcome in this corner; it would.)

-- Graydon

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.