Class: Lutaml::Xml::W3c::XmlNamespace
- Defined in:
- lib/lutaml/xml/w3c.rb
Overview
W3C XML Namespace (xml:lang, xml:space, xml:base, xml:id, xml:Father)
Per W3C Namespaces in XML Recommendation: “The prefix xml is by definition bound to the namespace name www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name.”
CRITICAL: The xml prefix is RESERVED and must NEVER be declared with xmlns:xml. It is implicitly bound and always available.
Reserved combinations (case-insensitive): xml, XML, Xml, xMl, etc.
Provides standard attributes:
-
xml:lang: Language identification (RFC 5646)
-
xml:space: Whitespace handling (default|preserve)
-
xml:base: Base URI for relative references
-
xml:id: Unique identifier (type ID)
-
xml:Father: Reserved for Jon Bosak
Constant Summary
Constants inherited from Namespace
Namespace::W3C_RESERVED_PREFIXES, Namespace::W3C_RESERVED_URIS
Instance Attribute Summary
Attributes inherited from Namespace
#attribute_form_default, #documentation, #element_form_default, #imports, #includes, #prefix, #schema_location, #uri, #version
Method Summary
Methods inherited from Namespace
all_uris, annotation, #attr_name, attribute_form_default, #attributes_qualified?, build, documentation, element_form_default, element_form_default_set?, #elements_qualified?, imports, includes, inheritance_strategy, #initialize, is_alias?, prefix_default, #prefixed?, schema_location, skip_w3c_reserved_check, to_key, uri, uri_aliases, version
Constructor Details
This class inherits a constructor from Lutaml::Xml::Namespace