<?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>28216</bug_id>
          
          <creation_ts>2015-03-15 11:57:28 +0000</creation_ts>
          <short_desc>[XSLT30] XPath 3.0 requires host languages to specify the kind of line ending normalization</short_desc>
          <delta_ts>2015-10-29 09:50:44 +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>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="Abel Braaksma">abel.braaksma</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>118604</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-15 11:57:28 +0000</bug_when>
    <thetext>The XPath 3.0 bug 14917, resolved during CR period, introduced the following requirement for host languages of XPath under A.2.3 End-of-Line Handling (http://www.w3.org/TR/xpath-30/#id-eol-handling):

&lt;quote&gt;
The host language must specify whether the XPath 3.0 processor normalizes all line breaks on input, before parsing, and if it does so, whether it uses the rules of [XML 1.0] or [XML 1.1].
&lt;/quote&gt;

I tried to search using several keywords for whether we specify that normatively somewhere, but I couldn&apos;t find it. 

I think we ought to add somehow/somewhere specifically how line endings are (not) normalized for XPath expressions to meet this XPath 3.0 requirement (note: the bug also applies to earlier XPath versions and by extension to earlier XSLT versions).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118714</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-20 12:53:39 +0000</bug_when>
    <thetext>Subject to WG approval, I have added the following text at the end of section 5.3:

&lt;p diff=&quot;add&quot; at=&quot;S-bug28216&quot;&gt;The XPath specification states that the host language must specify whether the XPath processor normalizes all line breaks on input, before parsing, and if it does so, whether it uses the rules of [XML 1.0] or [XML 1.1]. In the case of XSLT, all handling of line breaks is the responsibility of the XML parser (which may support either XML 1.0 or XML 1.1); the XSLT and XPath processors make no further changes.&lt;/p&gt;

&lt;note&gt;&lt;p diff=&quot;add&quot; at=&quot;S-bug28216&quot;&gt;Most XPath expressions in a stylesheet appear within XML attributes. They are therefore subject to XML line-ending normalization (for example, a CRLF sequence is normalized to LF) and also to XML attribute-value normalization, which replaces tabs and newlines by spaces. XPath expressions appearing in text value templates, however (see TVTs) are subject to line-ending normalization but not attribute value normalization). In both cases, normalization of whitespace can be prevented by using character references such as &lt;code&gt;&amp;amp;#x9;&lt;/code&gt;.&lt;/p&gt;&lt;/note&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119574</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-16 16:56:52 +0000</bug_when>
    <thetext>The changes in comment #1 were accepted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>