class Lutaml::Xml::UnqualifiedInheritanceStrategy

@see Section 3.3.2: Default is “unqualified”
@see www.w3.org/TR/xmlschema-1/#element-formdefault<br><br>configuration via native_types_inherit setting.
Exception: Complex types (models) may optionally inherit based on
Locally declared elements are NOT in the target namespace by default.
declare elementFormDefault or declares elementFormDefault=“unqualified”.
This implements W3C XML Schema default behavior when a schema does NOT
Child elements are in blank namespace
Strategy for elementFormDefault=“unqualified” (W3C DEFAULT)

def inherits?(element_type:, parent_ns_decl:, mapping:)

Returns:
  • (Boolean) - false - children in blank namespace

Parameters:
  • mapping (Xml::Mapping) -- the mapping being evaluated
  • parent_ns_decl (NamespaceDeclaration) -- parent's namespace declaration
  • element_type (Symbol) -- :model (complex type) or :native_value (simple type)
def inherits?(element_type:, parent_ns_decl:, mapping:)
  # W3C Rule: elementFormDefault="unqualified" means children in blank namespace
  # This is the W3C DEFAULT behavior when elementFormDefault is not specified
  #
  # Children must explicitly declare xmlns="" to prevent inheriting
  # the default namespace declaration from parent element
  false
end