xsl-list
[Top] [All Lists]

Re: [xsl] user-defined XSLT functions and stylesheet variables?

2021-06-20 12:05:40
On Sun, 2021-06-20 at 16:43 +0000, Michael Kay mike(_at_)saxonica(_dot_)com 
wrote:

A non-streamable function fn:input-document() might be a win!

Liam


It would have the same effect: code using this function could not be
easily converted to be part of a stylesheet that processes a
collection of documents.

Yeah, i was thinking after i wrote it that it'd need a tricksy
definition to work in that case and  still be useful, and i'm not at
all sure it's worth it.


I have occasionally wondered whether the ban on using tunnel
parameters inside a function is perhaps rather paternalistic. 

I think so - you can presumably have a template  wrapper whose only
purpose  is to return a tunel parameter, and call it from within the
function.

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>