Conflicting definitions for base64Binary

Hi! I'm trying to understand if a given behaviour is spec compliant or not.

XML Schema Part 2 says:
> The lexical forms of base64Binary values are limited to the 65 characters of the Base64 Alphabet defined in [RFC 2045], i.e., a-z, A-Z, 0-9, the plus sign (+), the forward slash (/) and the equal sign (=), together with the characters defined in [XML 1.0 (Second Edition)] as white space. **No other characters are allowed**.

But the corresponding RFC allows decoders to ignore any non-decodable
character. Should the XML Schema have a bigger priority at the expense
of compatibility with off-the-shelf base64 utilities?

I've found an XML library that shows the MIME-mandated behaviour
instead of the XML Schema one [1]. It's probably not the only one.

[1] https://github.com/xmlark/msv/issues/4

Received on Friday, 30 June 2023 17:40:28 UTC