Closed corymosiman12 closed 4 years ago
@corymosiman12 Presumably. My guess is that OxygenXML is attempting to validate the XML content of the Schematron document, but cannot find the XSD file for the "sch" XML namespace. To make the Schematron document compatible with OxygenXML, try adding the following attributes to the <sch:schema>
element:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="path/to/schematron.xsd"
where path/to/schematron.xsd
is the relative path.
You're saying to add those attributes into the Schematron XML file? Where would I get a schematron.xsd
file? I thought that was all embedded as part of the Schematron standard?
@corymosiman12 Correct. On the Schematron website, on the "Implementation" page, in the "Resources" section, there is a link to the RELAX NG schema for ISO Schematron 2016. You can use a "Conversion Tool" to convert from RELAX NG to XSD format, e.g., Trang.
ok so I found this iso-schematron.xsd.
It's saved here: /Users/cmosiman/Downloads/iso-schematron.xsd
I added title to the schema element:
I also added name to the pattern element:
I added this to my New_York...xml file
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://purl.oclc.org/dsdl/schematron /Users/cmosiman/Downloads/iso-schematron.xsd"
(they are also both in the downloads folder, so I tried: ./iso-schematron.xsd
and iso-schematron.xsd
as well. Am still getting the same errors...doing anything obviously wrong?
@corymosiman12 Thanks for your efforts. I've updated the Schematron document to conform to that XSD file.
@markborkum other errors went away...but...getting this with the new file...
@corymosiman12 We're getting close. The error message is correct. 3c602a8d1817aff13ac71dac7852c27bcf92f470 should resolve this issue.
@markborkum woohoo! thanks, working as expected!
Hey @markborkum, just came across this when trying to run schematron validation in OxygenXML. If I delete the name and title attributes, then the validation works, however, it won't run a validation unless I delete these. Is this an OxygenXML issue?