Makes sense - though on the whole, someone who uses mode="#current" is a
pretty advanced user of templates and modes, so it's not a mistake that
many people are likely to make.
Michael Kay
Saxonica
On 10/12/2012 23:00, Imsieke, Gerrit, le-tex wrote:
> It would be nice if Saxon warned about the use of an xsl:apply-templates
> in mode="#current" from within a function’s sequence constructor.
>
> Or am I the only one who writes a function that is expected to be called
> in a certain mode, who uses apply-templates in the function body, who
> wants that apply-templates to take place in the same mode as the
> function happened to be invoked in – but who erroneously uses
> mode="#current" in the function (which selects the default mode).
>
> Is there a use case for mode="#current" in a function body anyway?
>
> (Don’t get me wrong, I don’t want to rule #current out or change its
> semantics within function declarations; I’d just appreciate if Saxon
> warned me, if that’s a reasonable thing to do in these circumstances.)
>
> Gerrit
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
|