W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2016

[Bug 29817] New: Typo in reluctant qualifiers example

From: <bugzilla@jessica.w3.org>
Date: Mon, 12 Sep 2016 12:49:07 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29817-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29817

            Bug ID: 29817
           Summary: Typo in reluctant qualifiers example
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: joewiz@gmail.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

At https://www.w3.org/TR/xpath-functions-31/#regex-syntax, one of the examples
of reluctant qualifiers contains a typo, I believe:

> X?? matches X, once or not at all

The 2nd question mark is extraneous, since the following evaluate as true:

> matches("X", "X?")
> matches("", "X?")

Thus the 2nd question mark can be removed, as follows:

> X? matches X, once or not at all

The identical example is also present in earlier versions,
https://www.w3.org/TR/xpath-functions/#regex-syntax and
https://www.w3.org/TR/xpath-functions-30/#regex-syntax.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 12 September 2016 12:49:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:02 UTC