JATS-0011-001

Rule Overview

Message

The following string-length($match) characters that are present in the XML "$match" should be captured as numeric character references: for $cp in string-to-codepoints($match) return concat('&#', $cp, ';')

Rule XPath:

This rule ASSERTS the following, raising an alert if FALSE:

let $text := local:unparsed-xml(., $unparsedXml) returnlet $match := replace($text, concat('([ *<>?=\-\./:#;+"&,/\\\[\]^_`\|{}\(\)@~%!$0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', codepoints-to-string(39), ']+)+'), '') returnstring-length($match) = 0

Contexts