IsXsByte🔗

Type: Transpilable verification function
Check that text is a valid xs:byte.

We check that the text matches the pattern of xs:byte, and that the number is within the range of xs:byte.

See: https://www.w3.org/TR/xmlschema-2/#byte

text🔗
Text to be checked
Return🔗
True if the text is a valid xs:byte

Code

return matches_xs_byte(text) and _is_integer_in_range(text, "128", "127")