[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Text value templates in XSLT 3?

Subject: Re: [xsl] Text value templates in XSLT 3?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sat, 03 Nov 2012 16:49:13 +0000

The suggestion is still on the WG agenda - no decision has been made.

When we last discussed it, I think there were two unsolved problems: (a) how to handle backwards compatibility, and (b) whether the curly braces in text nodes should mean "value-of" or "copy-of" -- where I think most people would tend to prefer value-of if it weren't for the argument based on consistency with XQuery.

The backwards compatibility issue overlaps with a usability issue of how to handle content that is already rich in curly braces, like CSS or Javascript.

Michael Kay

On 03/11/2012 12:18, Imsieke, Gerrit, le-tex wrote:
Hi Florent,

Thomas Meinike has pointed [1] me to your XMLSS presentation on the XPath/XSLT/XQuery 3.0 novelties. Among other things, you presented XSLT text value templates [2], a feature that we didnt see in the current draft spec [3].

Can you elaborate a bit on the status of this feature?

I think that its misleading because syntactically it looks like XQuery where an arbitrary sequence may be created by the expression inside the curly braces, while in XSLT the expression should evaluate to a mere text node. Does this small gain in syntactic sweetness really outweigh the inconsistency with a sister spec?


[1] https://twitter.com/XMLArbyter/status/263220416817025024
[2] http://fgeorges.org/papers/fgeorges-xmlss-xslt-trends.pdf#page=40
[3] http://www.w3.org/TR/xslt-30/

Current Thread