pub fn validate_attribute_structure(
attrs: &AttributeMap,
name_table: &NameTable,
ctx: &ValidationContext,
) -> SchemaResult<()>Expand description
Validate attribute declaration structural constraints
Top-level attributes:
- Must have
nameattribute - Must NOT have
ref,use, orformattributes
Local attributes:
- Must have exactly one of
nameORref - If
refis present, type/form are prohibited (src-attribute.3.2) defaultandfixedARE allowed on refs (they set the attribute use’s value constraint)