<?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>5449</bug_id>
          
          <creation_ts>2008-02-05 11:06:41 +0000</creation_ts>
          <short_desc>[XSLT 2++] Enhancement: apply-templates to atomic values</short_desc>
          <delta_ts>2014-05-15 14:00:40 +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>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>normal</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>18771</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-02-05 11:06:41 +0000</bug_when>
    <thetext>This is motivated by a suggestion from Andre Cusson on xsl-list, 2008-02-03.

It would be a useful generalization of the XSLT processing model to allow apply-templates on atomic values. It is currently restricted to nodes. This would allow a capability similar to typeswitch in XQuery, but with the advantages of dynamic despatch (including the ability to override rules in a customization layer, for example). It would effectively give XSLT polymorphism over atomic types as well as over node types. 

This would require extension of XSLT patterns to be able to match atomic values by type. A possible syntax might be match=&quot;type(AtomicType)&quot;.

The existence of such patterns would also be useful in the group-starting-with and group-ending-with attributes of xsl:for-each-group, which are currently restricted to use when grouping sequences of nodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35214</commentid>
    <comment_count>1</comment_count>
    <who name="Sharon Adler">sca.w3c</who>
    <bug_when>2010-04-22 11:00:25 +0000</bug_when>
    <thetext>This bug is to be closed as the function was included in the First WD of XSLT 2.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>