[profile generation / test] Split and order lines accross root attributes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 02 Nov 2017 15:24:35 +0100
changeset 2819 c160f8fa5a88
parent 2793 ad99b2a9c295
child 2820 7b5e567e6f00
[profile generation / test] Split and order lines accross root attributes It's easier to read and ignored for validation.
test/data/seda_1_export.rng
test/data/seda_1_export.xsd
--- a/test/data/seda_1_export.rng	Tue Oct 31 16:40:01 2017 +0100
+++ b/test/data/seda_1_export.rng	Thu Nov 02 15:24:35 2017 +0100
@@ -1,5 +1,17 @@
 <?xml version='1.0' encoding='utf-8' standalone='no'?>
-<rng:grammar xmlns:clmIANACharacterSetCode="urn:un:unece:uncefact:codelist:standard:IANA:CharacterSetCode:2007-05-14" xmlns:clmDAFFileTypeCode="urn:un:unece:uncefact:codelist:draft:DAF:fileTypeCode:2009-08-18" xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:qdt="fr:gouv:culture:archivesdefrance:seda:v1.0:QualifiedDataType:1" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:10" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:standard:IANA:MIMEMediaType:2008-11-12" xmlns:clm60133="urn:un:unece:uncefact:codelist:standard:6:0133:40106" xmlns="fr:gouv:culture:archivesdefrance:seda:v1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes" ns="fr:gouv:culture:archivesdefrance:seda:v1.0">
+<rng:grammar
+    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+    xmlns:clm60133="urn:un:unece:uncefact:codelist:standard:6:0133:40106"
+    xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:standard:IANA:MIMEMediaType:2008-11-12"
+    xmlns:clmIANACharacterSetCode="urn:un:unece:uncefact:codelist:standard:IANA:CharacterSetCode:2007-05-14"
+    xmlns:clmDAFFileTypeCode="urn:un:unece:uncefact:codelist:draft:DAF:fileTypeCode:2009-08-18"
+    xmlns:qdt="fr:gouv:culture:archivesdefrance:seda:v1.0:QualifiedDataType:1"
+    xmlns:rng="http://relaxng.org/ns/structure/1.0"
+    xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:10"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns="fr:gouv:culture:archivesdefrance:seda:v1.0"
+    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
+    ns="fr:gouv:culture:archivesdefrance:seda:v1.0">
   <rng:start>
     <rng:element name="ArchiveTransfer">
       <xsd:annotation>
--- a/test/data/seda_1_export.xsd	Tue Oct 31 16:40:01 2017 +0100
+++ b/test/data/seda_1_export.xsd	Thu Nov 02 15:24:35 2017 +0100
@@ -1,5 +1,17 @@
 <?xml version='1.0' encoding='utf-8' standalone='no'?>
-<xsd:schema xmlns:clmDAFFileTypeCode="urn:un:unece:uncefact:codelist:draft:DAF:fileTypeCode:2009-08-18" xmlns:clmIANACharacterSetCode="urn:un:unece:uncefact:codelist:standard:IANA:CharacterSetCode:2007-05-14" xmlns:qdt="fr:gouv:culture:archivesdefrance:seda:v1.0:QualifiedDataType:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:clm60133="urn:un:unece:uncefact:codelist:standard:6:0133:40106" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:10" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:standard:IANA:MIMEMediaType:2008-11-12" xmlns="fr:gouv:culture:archivesdefrance:seda:v1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="fr:gouv:culture:archivesdefrance:seda:v1.0" version="1.0">
+<xsd:schema
+    xmlns:clm60133="urn:un:unece:uncefact:codelist:standard:6:0133:40106"
+    xmlns:clmDAFFileTypeCode="urn:un:unece:uncefact:codelist:draft:DAF:fileTypeCode:2009-08-18"
+    xmlns:clmIANACharacterSetCode="urn:un:unece:uncefact:codelist:standard:IANA:CharacterSetCode:2007-05-14"
+    xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:standard:IANA:MIMEMediaType:2008-11-12"
+    xmlns:qdt="fr:gouv:culture:archivesdefrance:seda:v1.0:QualifiedDataType:1"
+    xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:10"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns="fr:gouv:culture:archivesdefrance:seda:v1.0"
+    attributeFormDefault="unqualified"
+    elementFormDefault="qualified"
+    targetNamespace="fr:gouv:culture:archivesdefrance:seda:v1.0"
+    version="1.0">
   <xsd:element name="ArchiveTransfer">
     <xsd:annotation>
       <xsd:documentation>my profile title &amp;&amp;</xsd:documentation>