Subject: Re: [xsl] user-defined XSLT functions and stylesheet variables? From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 20 Jun 2021 16:42:33 -0000 |
> 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. 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. Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] user-defined XSLT functio, Liam R. E. Quin liam | Thread | Re: [xsl] user-defined XSLT functio, Liam R. E. Quin liam |
Re: [xsl] user-defined XSLT functio, Liam R. E. Quin liam | Date | Re: [xsl] user-defined XSLT functio, Liam R. E. Quin liam |
Month |