[Bug 29817] New: Typo in reluctant qualifiers example

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