SchemaFactory does not catch enum. value that is not in the value space of the base type, anyURI.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: jaxp_1.5, 8
    • Component/s: xml
    • b113
    • generic
    • generic

        Attached schema (anyURI_b006.xsd) holds invalid instance of xs:anyURI. The piece of code that compiles it
        ----------------
         SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
         sf.setErrorHandler(errorCollector);
         Schema schema = sf.newSchema( new File("anyURI_b006.xsd"));
        ----------------
        does not throw SAXException:
        -----------------
        ERROR] enumeration-valid-restriction: Enumeration value '\\' is not in the value space of the base type, anyURI.
        -----------------
        as expected.

        See also the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048

              Assignee:
              Joe Wang
              Reporter:
              Leonid Kuskov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: