Class UnknownElement

All Implemented Interfaces:
Source, SourceLocator, ActiveSource, GroundedValue, Item, MutableNodeInfo, NamespaceResolver, NodeInfo, Sequence, Location, SteppingNode, SiblingCountingNode, Locator

public class UnknownElement extends SchemaElement
An unknown element in an XML Schema document. This may be an element with an unknown name in the schema namespace, or an element in a user namespace. In both cases the element is valid within xs:appInfo and xs:documentation, but not elsewhere. We don't validate the contents of the element.
  • Constructor Details

    • UnknownElement

      public UnknownElement()
      Creates a new unknown element
  • Method Details

    • prepareAttributes

      protected void prepareAttributes() throws SchemaException
      Validate and process the attributes on this element in the schema document
      Specified by:
      prepareAttributes in class SchemaElement
      Throws:
      SchemaException - if any errors are found in the attributes
    • validateSubtree

      public void validateSubtree(SchemaCompiler compiler)
      Recursive walk through the stylesheet to validate all nodes: this implementation suppresses the subtree validation.
      Overrides:
      validateSubtree in class SchemaElement
      Parameters:
      compiler - the schema compiler
    • validate

      public void validate(SchemaCompiler compiler)
      Validate this schema element, checking all document-level constraints
      Overrides:
      validate in class SchemaElement
      Parameters:
      compiler - the schema compiler