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=6940>.
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=6940

base64Binary does not appear to validate correctly.

           Summary: base64Binary does not appear to validate correctly.
           Product: Xerces2-J
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My understanding of base64, looking at RFC 2045
is that the value space of a base64Binary 
may
roughly contain the characters specified by
the regular expression [0-9a-zA-Z+/]

I 
have the following in my schema:

<xsd:element name="demoBase64Binary">
    
<xsd:simpleType>
        <xsd:restriction base="xsd:base64Binary">
            <xsd:maxLength 
value="200"/>
        </xsd:restriction>
    </xsd:simpleType>
</xsd:element>

And the 
following in the corresponding 
XML:

<demoBase64Binary>3CEFA+25Ba21cX</demoBase64Binary>

I get:

[Error] 
built-in.xml:16:59: cvc-type.3.1.3: The value '3CEFA+25Ba21cX' of element
 
'demoBase64Binary' is not valid.

Note that this doesn't work without the '+' 
character
either.

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

Reply via email to