[Bug 21671] New: [FO30] analyze-string examples

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21671

            Bug ID: 21671
           Summary: [FO30] analyze-string examples
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Functions and Operators 3.0
          Assignee: mike@saxonica.com
          Reporter: andrew.eisenberg@us.ibm.com
        QA Contact: public-qt-comments@w3.org

The examples in section 5.6.5 fn:analyze-string start with:

"The expression fn:analyze-string("The cat sat on the mat.", "\w+") returns
<analyze-string-result xmlns="http://www.w3.org/2005/xpath-functions">
<match>The</match> <non-match> </non-match> <match>cat</match> <non-match>
</non-match> <match>sat</match> <non-match> </non-match> <match>on</match>
<non-match> </non-match> <match>the</match> <non-match> </non-match>
<match>mat</match> <non-match>.</non-match> </analyze-string-result>."

Not very readable. I suggest that you add:

Indented for readability, this result is:

<analyze-string-result xmlns="http://www.w3.org/2005/xpath-functions">
   <match>The</match>
   <non-match> </non-match>
   <match>cat</match>
   <non-match> </non-match>
   <match>sat</match>
   <non-match> </non-match>
   <match>on</match>
   <non-match> </non-match>
   <match>the</match>
   <non-match> </non-match>
   <match>mat</match>
   <non-match>.</non-match>
</analyze-string-result>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 11 April 2013 22:36:28 UTC