Closed Brtle closed 5 years ago
Thanks for your contribution and sorry for the long delay.
We prefer excluding the scs prefix (exclude-result-prefixes="scs qml xsl"
).
Could you please rebase your merge request against the current master.
Thanks for your contribution and sorry for the long delay.
Thanks for looking into it!
We prefer excluding the scs prefix (
exclude-result-prefixes="scs qml xsl"
).Could you please rebase your merge request against the current master.
Done.
I successfully tested round trip conversion using the 0.11 schema. Thanks for your contribution!
In the QuakeML format, there is the possibility to create custom nodes. This PR modify the XSLT stylesheets to put the seiscomp nodes that are not mapped in QuakeML in these custom fields. This allows some round-trip conversion without loss of data. For instance, the
pdf
node doesn't exist in QuakeML:The XSLT conversion puts this
pdf
node in a custom tags.This QuakeML file contains the
pdf
node in a custom namespace and is still valid. Moreover, the reverse conversion (using this stylesheet) generates exactly the same sc3ml file.The custom namespace can also be defined in the header:
The generated file looks like:
But it will always be there even if there are no custom tags in the file. I don't know if it's better or not.
Let me know what you think about this!