Using Schema+Schematron on XML files with XMLNS error
Posted: Tue Aug 29, 2023 4:31 pm
I'm having issues using schema validation along with Schematron validation when the XML file contains a XMLNS tag.
We are developing a framework to work with ATA2300, and in this specification, the namespace xmlns="http://www.ataebiz.org/XMLSchema" is used. A catalog file was created to apply the schema to the XML files. A Schematron was also created to validate some rules apart from the schema. However, when we have the XMLNS tag, Oxygen doesn't take the Schematron into account. When I remove the XMLNS tag, the Schematron works, but the schema stops working.
Am I doing something wrong, or is it really a tool issue?
Validation scenario: Catalog: Simple Schematron: File with XMLNS working with Schema, but not with schematron: File without XMLNS working with Schematron, but not with schema:
We are having the same problem when using xsi:noNamespaceSchemaLocation instead of xsi:schemaLocation
We are developing a framework to work with ATA2300, and in this specification, the namespace xmlns="http://www.ataebiz.org/XMLSchema" is used. A catalog file was created to apply the schema to the XML files. A Schematron was also created to validate some rules apart from the schema. However, when we have the XMLNS tag, Oxygen doesn't take the Schematron into account. When I remove the XMLNS tag, the Schematron works, but the schema stops working.
Am I doing something wrong, or is it really a tool issue?
Validation scenario: Catalog: Simple Schematron: File with XMLNS working with Schema, but not with schematron: File without XMLNS working with Schematron, but not with schema:
We are having the same problem when using xsi:noNamespaceSchemaLocation instead of xsi:schemaLocation