[Bug 2720] [FS] Wrong / operator precedence in PathExpr normalization rule

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2720

           Summary: [FS] Wrong / operator precedence in PathExpr
                    normalization rule
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Formal Semantics
        AssignedTo: simeon@us.ibm.com
        ReportedBy: villard@us.ibm.com
         QAContact: public-qt-comments@w3.org


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))

Received on Monday, 16 January 2006 21:46:53 UTC