<?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>2720</bug_id>
          
          <creation_ts>2006-01-16 21:46:45 +0000</creation_ts>
          <short_desc>[FS] Wrong / operator precedence in PathExpr normalization rule</short_desc>
          <delta_ts>2006-10-19 22:57:14 +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>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Lionel Villard">villard</reporter>
          <assigned_to name="Jerome Simeon">simeon</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>7853</commentid>
    <comment_count>0</comment_count>
    <who name="Lionel Villard">villard</who>
    <bug_when>2006-01-16 21:46:47 +0000</bug_when>
    <thetext>The normalization rule for PathExpr is not consistent with the / operator
precedence, which is left-to-right. It should be written this way:

[RelativePathExpr / StepExpr]Expr == 
 fs:apply-ordering-mode (
 fs:distinct-doc-order-or-atomic-sequence (
   let $fs:sequence as node()* := [RelativePathExpr]Expr return
   let $fs:last := fn:count($fs:sequence) return
   for $fs:dot at $fs:position in $fs:sequence return
     [StepExpr]Expr))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8025</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-01-28 17:03:05 +0000</bug_when>
    <thetext>I agree with the comment. The rewriting is clearer according to the
precedence rule. I do not believe this changes the actual dynamic or static 
semantics, but makes it clearer.
- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8093</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-02-01 20:30:44 +0000</bug_when>
    <thetext>Note that the following rule:

[ StepExpr // RelativePathExpr ]Expr
==
[StepExpr / descendant-or-self::node() / RelativePathExpr]Expr

Should also be changed in a consistent way, to:

[ RelativePathExpr // StepExpr ]Expr
==
[ RelativePathExpr / descendant-or-self::node() / StepExpr ]Expr

- Jerome</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8258</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-02-14 16:32:53 +0000</bug_when>
    <thetext>The XSLT and XQuery WG have accepted your comments, and the issue will be fixed
by adopting the changes listed in comments #1 and #2.

Best regards,
- Jerome
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>