Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1168

Whitespace Facet Defined in XSModel but not in XML Schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 2.8.0
    • None
    • XML Schema API
    • None

    Description

      When loading the XML Schema below (or any other schema for that matter) with XSLoader and traversing the XSModel, I recognized that the XSSimpleTypeDefinition for the element returns the whitespace facet as defined, when calling getDefinedFacets(). After trying various schemas, I didn't find a single case, where the whitespace face was not defined.

      <schema
      targetNamespace="http://www.sample.com/Test"
      xmlns="http://www.w3.org/2001/XMLSchema">

      <element name="test" type="string"/>

      </schema>

      Attachments

        Activity

          People

            Unassigned Unassigned
            dschalle Dirk Schalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: