Project

Profile

Help

Bug #3790

Updated by Debbie Lockett over 6 years ago

In the documentation app, we search for the supplied search term in all the section documents using substring matching with fn:contains(), @fn:contains()@, but then highlight using regex pattern matching with xsl:analyze-string. @xsl:analyze-string@. Unsurprisingly, this can produce some dodgy results (e.g. searching for "." means all text gets highlighted; searching for "?" results in an uncaught Saxon-JS error "Invalid regular expression /?/"). 
 

Back