@@ -135,6 +135,7 @@ def parse_attribute_definitions(
135135 )
136136 if xml_attribute_definition is not None :
137137 default_value_definition_ref = xml_attribute_definition .text
138+
138139 elif attribute_definition .tag == "ATTRIBUTE-DEFINITION-XHTML" :
139140 attribute_type = SpecObjectAttributeType .XHTML
140141 try :
@@ -167,6 +168,7 @@ def parse_attribute_definitions(
167168 default_value = lxml_stringify_namespaced_children (xml_values )
168169 else :
169170 raise NotImplementedError
171+
170172 elif attribute_definition .tag == "ATTRIBUTE-DEFINITION-ENUMERATION" :
171173 attribute_type = SpecObjectAttributeType .ENUMERATION
172174 multi_valued_string = (
@@ -210,6 +212,7 @@ def parse_attribute_definitions(
210212 default_value = xml_enum_value_ref .text
211213 else :
212214 raise NotImplementedError
215+
213216 elif attribute_definition .tag == "ATTRIBUTE-DEFINITION-DATE" :
214217 attribute_type = SpecObjectAttributeType .DATE
215218 try :
@@ -220,6 +223,13 @@ def parse_attribute_definitions(
220223 )
221224 except Exception as exception :
222225 raise NotImplementedError (attribute_definition ) from exception
226+
227+ xml_default_value = attribute_definition .find ("DEFAULT-VALUE" )
228+ if xml_default_value is not None :
229+ xml_attribute_value = xml_default_value .find ("ATTRIBUTE-VALUE-DATE" )
230+ assert xml_attribute_value is not None
231+ default_value = xml_attribute_value .attrib ["THE-VALUE" ]
232+
223233 else :
224234 raise NotImplementedError (attribute_definition ) from None
225235 attribute_definition = SpecAttributeDefinition (
0 commit comments