DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094

Base64Binary validation failed when length is zero





------- Additional Comments From [EMAIL PROTECTED]  2004-01-16 16:40 -------
It appears that the JAVA version of Xerces exhibits the correct behaviour in
this situation

http://www.w3.org/TR/xmlschema-2/#base64Binary
The ·value space· of base64Binary is the set of finite-length sequences of
binary octets.
Although not explicitly defined in the spec, "finite-length" implicitly appears
to include the value 0 

This bug also appears to be present with respect to the hexBinary datatype

void HexBinaryDatatypeValidator::checkValueSpace(const XMLCh* const content)
{
    if (getLength(content) <= 0)
    {
        ThrowXML1(InvalidDatatypeValueException
                , XMLExcepts::VALUE_Not_HexBin
                , content);
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to