Commit 02265791 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[profile gen] Content description in SEDA 0.2 should have Language, not DescriptionLanguage

parent 1b9883a3c932
......@@ -1209,8 +1209,7 @@ class SEDA02XSDExport(SEDA1XSDExport):
documentation=date_entity.user_annotation)
if content.description:
self.xsd_description(cd_node, content.description)
# in SEDA 0.2, content description has a description language as well
self.element_schema(cd_node, 'DescriptionLanguage', 'qdt:CodeLanguageType',
self.element_schema(cd_node, 'Language', 'qdt:CodeLanguageType',
fixed_value='fr',
xsd_attributes=[LIST_VERSION_ID_2009])
for keyword in content.keywords:
......
......@@ -90,7 +90,7 @@
<rng:data type="string"/>
</rng:element>
</rng:optional>
<rng:element name="DescriptionLanguage">
<rng:element name="Language">
<rng:attribute name="listVersionID">
<rng:value type="token">edition 2009</rng:value>
</rng:attribute>
......
......@@ -156,7 +156,7 @@
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element fixed="fr" name="DescriptionLanguage">
<xsd:element fixed="fr" name="Language">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="qdt:CodeLanguageType">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment