Schematron and Oxygen 26
Posted: Mon Mar 04, 2024 9:44 pm
Dear Oxygen community,
I am writing a small ODD containing some very simple Schematron. The file starts as follows:
and some of the rules are as follows:
I had added this and other code last year, and it worked fine; then I left the ODD aside for a few months. Now, after resuming the work, it does not work anymore, and the same for some Schematron I added more recently, about one months ago. I really do not know what happened: the only thing I could think about is that in the meantime I started using Oxygen 26. Oxygen does not seem to see the schematron at all when I try to valide my XML files against the compiled rng schema.
Any ideas?
Thank you in advance for your help and sorry for a certainly trivial question.
Best,
Alex.
I am writing a small ODD containing some very simple Schematron. The file starts as follows:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/odd/p5odds.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/odd/p5odds.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron">
Code: Select all
<sch:rule context="tei:provenance[@type='found'][@subtype]">
<sch:assert
test="@subtype = ('discovered','rediscovered','first-seen','first-recorded')"
>With provenance/@type='found', @subtype's values are
'discovered','rediscovered','first-seen','first-recorded'.</sch:assert>
</sch:rule>
Any ideas?
Thank you in advance for your help and sorry for a certainly trivial question.
Best,
Alex.