On 04/12/2007, David Carlisle <davidc@xxxxxxxxx> wrote:
>
>
> > Gestalt doesn't allow extension functions to have side effects though,
> > so I will put this on my todo list.
>
> But what about xslt-defined functions that have side effects?
>
> <xsl:function name="my:f">
> <xsl:param name="x">
> <xsl:result-document...
> <xsl;apply-templates ...
>
> ...
>
> <xsl:for-each select="my:f(.)"/>
Ugh!
People who write that sort of stuff deserve stronger warnings!
> > Presumably a similar warning for xsl:template and xsl:for-each-group
> > would be equally desirable. Any others?
>
>
> not xsl:template:-)
>
> <xsl:template match="/"/> typically does have an effect.
That's often true. I would still think a warning is in order though,
with better wording.
|