<?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>4979</bug_id>
          
          <creation_ts>2007-08-23 13:38:54 +0000</creation_ts>
          <short_desc>[XSLT 2++] Enhancement: declare default identity template</short_desc>
          <delta_ts>2010-04-28 18:57:27 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>sca.w3c</cc>
          
          <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>16246</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-08-23 13:38:54 +0000</bug_when>
    <thetext>During discussion of streaming use cases, the XSL WG identified that it would help both users and implementors if the stereotypical use of the identity template to override the standard built-in template(s) could be expressed more declaratively.

For example, one might have an attribute at xsl:stylesheet level, or a per-mode declaration such as

&lt;xsl:mode name=&quot;mode-name&quot;
  default-action=&quot;copy|copy-text|delete|continue|error&quot;/&gt;

where &quot;copy-text&quot; is the current default (copy text nodes only, drop everything else), &quot;copy&quot; means copy all nodes (the so-called identity template), &quot;delete&quot; means delete the entire subtree rooted at the node, &quot;continue&quot; means apply-templates to the children, and &quot;error&quot; means throw a dynamic error; with the default applying to the named mode or in the absence of a mode-name to the default mode.

It was also noted that a common stereotype for the default template is to rename elements, and perhaps we should also provide for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17122</commentid>
    <comment_count>1</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2007-10-10 19:33:39 +0000</bug_when>
    <thetext>Considered as an enhancement request for VNext</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35284</commentid>
    <comment_count>2</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2010-04-28 18:57:27 +0000</bug_when>
    <thetext>done - to be closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>