<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26525</bug_id>
          
          <creation_ts>2014-08-05 14:07:01 +0000</creation_ts>
          <short_desc>[XSLT30] xsl:text/@expand-text</short_desc>
          <delta_ts>2014-08-22 11:32:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109933</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-08-05 14:07:01 +0000</bug_when>
    <thetext>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 &quot;no&quot; is allowed, and the value &quot;yes&quot; 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 &quot;no&quot;. 

But this doesn&apos;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 &quot;no&quot;.

Note: if an ancestor of the xsl:text element has the attribute value [xsl:]expand-text=&quot;yes&quot;, 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&apos;t see the point of the restriction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110417</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-08-21 17:08:21 +0000</bug_when>
    <thetext>The WG decided today that text value templates should apply to text node children of xsl:text if an expand-text=&quot;yes&quot; attribute is in scope, in the same way as they apply to all other text nodes in the stylesheet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110470</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-08-22 11:32:53 +0000</bug_when>
    <thetext>The changes have been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>