JATS-0011-002

Rule Overview

Message

The XML should not contain any control characters, private use characters, or disallowed characters. Found string-length($found) invalid characters "$found" with codepoints string-join(string-to-codepoints($found), ', ')

Rule XPath:

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

let $regex := '([-Ÿ]|[-]|[󰀀-󿿽]|[􀀀-􏿽]|[﷐-﷯]|[🿾-🿿]|[𯿾-𯿿]|[𿿾-𿿿]|[񏿾-񏿿]|[񟿾-񟿿]|[񯿾-񯿿]|[񿿾-񿿿]|[򏿾-򏿿]|[򟿾-򟿿]|[򯿾-򯿿]|[򿿾-򿿿]|[󏿾-󏿿]|[󟿾-󟿿]|[󯿾-󯿿]|[󿿾-󿿿]|[􏿾-􏿿])' returnlet $found := string-join(for $t in (@*, node() except *) return analyze-string($t, $regex)//*:group) returnstring-length($found) = 0

Contexts

Inherited Contexts

Additional Information

See related documentation Character Encoding and Whitespace. Characters that are in the following Unicode ranges are not allowed:

From To Description
U+0000 U+0008 Control characters that are not allowed by the W3C XML Recommendation
U+000B U+000C
U+000E U+001F
U+007F U+009F Control characters in Unicode that also represent other characters in Windows-1252
U+E000 U+F8FF Private Use Area
U+F0000 U+FFFFD
U+100000 U+10FFFD
U+FDD0 U+FDEF Discouraged by the W3C XML Recommendation
U+1FFFE U+1FFFF
U+2FFFE U+2FFFF
U+3FFFE U+3FFFF
U+4FFFE U+4FFFF
U+5FFFE U+5FFFF
U+6FFFE U+6FFFF
U+7FFFE U+7FFFF
U+8FFFE U+8FFFF
U+9FFFE U+9FFFF
U+AFFFE U+AFFFF
U+BFFFE U+BFFFF
U+CFFFE U+CFFFF
U+DFFFE U+DFFFF
U+EFFFE U+EFFFF
U+FFFFE U+FFFFF
U+10FFFE U+10FFFF