<?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>27616</bug_id>
          
          <creation_ts>2014-12-15 22:25:58 +0000</creation_ts>
          <short_desc>[XSLT30] character maps needs a string? [I18N-ISSUE-396]</short_desc>
          <delta_ts>2015-10-29 09:50:43 +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>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Addison Phillips">addison</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>abel.braaksma</cc>
    
    <cc>jim.melton</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>116351</commentid>
    <comment_count>0</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2014-12-15 22:25:58 +0000</bug_when>
    <thetext>http://www.w3.org/TR/xslt-30/#character-maps

The &apos;character-maps&apos; feature allows mapping a Unicode &apos;char&apos; (which is defined in a way that means a Unicode codepoint) to a replacement string. This is good for most purposes, but it&apos;s not clear to me if grapheme cluster sequences might be useful here as well.

This is an I18N WG comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116358</commentid>
    <comment_count>1</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2014-12-15 23:27:22 +0000</bug_when>
    <thetext>This bug applies equally well to the XPath and XQuery Functions and Operators 3.1 specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116631</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-12-21 21:08:49 +0000</bug_when>
    <thetext>Personal response:

Character maps are a pretty ugly feature; they were introduced as a slightly cleaner alternative to the disable-output-escaping feature, but they still have the architectural disadvantage of creating an unwanted coupling between the transformation and the serialization of its results. We wouldn&apos;t want to encourage people to do semantic transformations of the data in the serialization phase, so I personally wouldn&apos;t welcome any feature-creep in this area.

The most common use cases for character maps is to generate entity or character references, or other serialization artefacts such as DOCTYPE declarations or CDATA sections that have no direct representation in the XDM data model. I haven&apos;t come across any users who have problems that would be solved by allowing substitution of anything more than a single character. Substituting arbitrary strings could become very expensive, and could lead to users attempting to use the feature for tasks that are properly done in the transformation phase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117437</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-01-22 18:52:02 +0000</bug_when>
    <thetext>The XSL WG agreed that we do not want to enhance the capability of character maps. There were designed as a way of working around limitations in the serializer such as the ability to generate DOCTYPE declarations, or for generating output in &quot;not-quite-standard&quot; formats such as PHP code; they meet this need; and we do not want to encourage people to use them as a general purpose string transformation language in its own right.

We are therefore respectfully declining this suggested enhancement.

XSL WG here is acting for the XQuery WG as well.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>