[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 #1 from Michael Kay <mike@saxonica.com> ---
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). For some constructs, we have got around
this problem by replicating functionality in the two languages
(templates/functions, XSLT variables vs XPath let, XSLT for-each vs XPath "!",
xsl:choose vs XPath conditional expressions). However, the logical conclusion
of a pursuit for full composability would be for all XSLT functionality to be
reproduced in XPath. We don't think this amount of duplication would be good
for the language. 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.

(personal response)

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

Received on Sunday, 5 January 2014 21:33:20 UTC