Skip to content

Commit

Permalink
added schema location and xsi ns string to output
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsgalore committed Apr 19, 2022
1 parent e3fbde7 commit 23fc174
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion isolyzer/isolyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@
scriptName = 'isolyzer'

__version__ = '1.4.0a2'


# Name space and XSD schema strings
nsString = 'http://kb.nl/ns/isolyzer/v1/'
schemaString = 'http://kb.nl/ns/isolyzer/v1/ \
https://raw.githubusercontent.com/KBNLresearch/isolyzer/xsd/xsd/isolyzer-v-1-0.xsd'
xsiNsString = 'http://www.w3.org/2001/XMLSchema-instance'

# Create parser
parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -772,7 +778,9 @@ def processImages(images, offset):
Process list of images
"""
# Create output element
root = ET.Element("isolyzer", {'xmlns': nsString})
root = ET.Element("isolyzer", {'xmlns': nsString,
'xmlns:xsi': xsiNsString,
'xsi:schemaLocation': schemaString})

# Add some info on isolyzer and the version used
toolInfo = ET.Element('toolInfo')
Expand Down

0 comments on commit 23fc174

Please sign in to comment.