]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
Clean-up XML namespaces
authorRaphael Michel <michel@rami.io>
Wed, 22 Jan 2025 15:40:04 +0000 (16:40 +0100)
committerRaphael Michel <michel@rami.io>
Wed, 22 Jan 2025 15:40:04 +0000 (16:40 +0100)
drafthorse/models/__init__.py
drafthorse/models/document.py

index b4a25e2702a46e9ca2b40eaa79f9683a711a1fab..f82d0aa278bf8afd69610841db8de1fccb0d3d81 100644 (file)
@@ -1,6 +1,5 @@
 NS_RSM = "urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
 NS_UDT = "urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
-NS_A = "urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
 NS_RAM = (
     "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
 )
index 67a792032c6c36f2d5ac87df2e68713ea73bc1ce..2056eed85f8d12ef9755240684d919bc6e321fc4 100644 (file)
@@ -3,7 +3,7 @@ import xml.etree.cElementTree as ET
 from .container import StringContainer, Container
 from .note import IncludedNote
 
-from . import BASIC, EXTENDED, NS_A, NS_QDT, NS_RAM, NS_RSM, NS_UDT
+from . import BASIC, EXTENDED, NS_QDT, NS_RAM, NS_RSM, NS_UDT
 from .elements import Element
 from .fields import (
     DateTimeField,
@@ -103,11 +103,10 @@ class Document(Element):
 
     def __init__(self):
         super().__init__()
-        ET.register_namespace("a", NS_A)
         ET.register_namespace("rsm", NS_RSM)
         ET.register_namespace("qdt", NS_QDT)
         ET.register_namespace("ram", NS_RAM)
-        ET.register_namespace("xsi", "http://www.w3.org/2001/XMLSchema")
+        ET.register_namespace("xs", "http://www.w3.org/2001/XMLSchema")
         ET.register_namespace("udt", NS_UDT)
 
     class Meta: