[Bug 26525] New: [XSLT30] xsl:text/@expand-text

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

            Bug ID: 26525
           Summary: [XSLT30] xsl:text/@expand-text
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org

We made a decision not to allow text value templates within xsl:text.

But the rules for the attribute xsl:text/@expand-text seem unclear. We have
test cases cvt-019 and cvt-020 that suggest the value "no" is allowed, and the
value "yes" is prohibited, but there seems to be no rule in the spec to back
this up, other than a note in 5.8 which says 

For an xsl:text element, the effective value of [xsl:]expand-text is always
"no". 

But this doesn't seem to be backed up by any normative statement.

I would suggest adding to the specification of xsl:text:

* if the standard attribute expand-text is present, it must take the value
"no".

Note: if an ancestor of the xsl:text element has the attribute value
[xsl:]expand-text="yes", this does not cause text value templates to be
recognized in the xsl:text element.

Alternatively, we could reconsider our decision not to allow TVTs within
xsl:text. I have to say I can't see the point of the restriction.

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

Received on Tuesday, 5 August 2014 14:07:05 UTC