Skip to main content

validate_import_structure

Function validate_import_structure 

Source
pub fn validate_import_structure(
    attrs: &AttributeMap,
    name_table: &NameTable,
) -> SchemaResult<()>
Expand description

Validate import directive structure

  • schemaLocation is optional
  • namespace, when present, must not be the empty string (§4.2.6.2 / §4.2.3 src-import constraint 1.2 in XSD 1.1; §4.2.3 in XSD 1.0). Empty namespace is forbidden because absent and “” denote different things in XSD.