[Bug 24207] XPath-level element and attribute constructors for use in anonymous functions

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24207

--- Comment #2 from Tony Graham <tgraham@mentea.net> ---
(In reply to Michael Kay from comment #1)
> XSLT is a two language system: XSLT instructions invoking XPath expressions.
> This means that the language is not fully composable (XSLT instructions
> cannot be invoked from XPath expressions).

Yet there is some drift between specs over time: e.g., document() and doc().

This is marked as an enhancement, not a bug, to point out something that you
might look at in the future, not something you have to fix today.  Yes, current
stylesheets are inelegant and harder to read than they could be, but they are
not unworkable.

...
> There is a general workaround,
> which is that if you need to access some XSLT functionality from XPath, you
> can wrap it in a function. For example you could write a function library
> for element and attribute creation.

Good point.  And presumably if you do see it happening often enough, you'd
think about adding it to a later version.

> (personal response)

Understood.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 5 January 2014 23:15:39 UTC