<?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>24384</bug_id>
          
          <creation_ts>2014-01-24 16:16:30 +0000</creation_ts>
          <short_desc>[FO30] Typos and link issues under fn:unparsed-text-lines(), and relation with fn:unparsed-text-available()</short_desc>
          <delta_ts>2014-02-19 09:07:00 +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>Functions and Operators 3.0</component>
          <version>Proposed Recommendation</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <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>99008</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-01-24 16:16:30 +0000</bug_when>
    <thetext>In the third paragraph of fn:unparsed-text-lines() [1], the text &quot;The result is a thus a sequence of strings&quot;, should probably read &quot;The result is thus a sequence of strings&quot;.

The links under the expressions in the second paragraph extend to the whole expressions, as opposed to only the individual functions (tokenize, unparsed-text etc). Perhaps this is a limitation of the build script, however, if it is, I think it is more readable without the links.

Furthermore, since the function is now deterministic (as opposed to non-deterministic from the streaming discussion a while ago), I think it is good to allow fn:unparsed-text-available() to also apply to fn:unparsed-text-lines(). Currently, there&apos;s no such relation between those functions.

[1] http://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99009</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-01-24 16:25:24 +0000</bug_when>
    <thetext>Oh, and I just noticed: the second example in the same section has a double &quot;))&quot;, it should be one closing parenthesis at that position.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100857</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-19 09:06:25 +0000</bug_when>
    <thetext>Discussed by the WG, closed with the following action:

1. &quot;is a thus a&quot;. Fixed in both 3.0 and 3.1.

2. The generation of links to functions is automated and I agree it&apos;s very clumsy. However, it&apos;s been unchanged for a long time (since pre-2.0) and there&apos;s no immediate urgency, so not fixing this right now.

3. We believe that unparsed-text-available() does indeed apply to unparsed-text-lines(). The linkage is there, but is indirect: the specification of unparsed-text-lines makes clear that it fails under exactly the same circumstances as unparsed-text, and these are exactly the circumstances under which unparsed-text-available returns false. I have added a statement to this effect as a Note in both 3.0 and 3.1:

&quot;Since the function &lt;function&gt;unparsed-text-lines&lt;/function&gt; succeeds or fails under exactly the same circumstances as &lt;function&gt;unparsed-text&lt;/function&gt;, the &lt;function&gt;unparsed-text-availabl&lt;/function&gt; function may equally be used to test whether a call on &lt;function&gt;unparsed-text-lines&lt;/function&gt; would succeed.&quot;

4. The mismatched parentheses in the code example have been fixed (in 3.0 and 3.1).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>