The problem seems to be in the generated p5.isosch file, with one or more of these patterns: <pattern id="egia-elementSpec" is-a="en-gloss-if-any"> <param name="gse" value="tei:elementSpec"/> </pattern> <pattern id="egia-classSpec" is-a="en-gloss-if-any"> <param name="gse" value="tei:classSpec"/> </pattern> <pattern id="egia-dataSpec" is-a="en-gloss-if-any"> <param name="gse" value="tei:dataSpec"/> </pattern> <pattern id="egia-macroSpec" is-a="en-gloss-if-any"> <param name="gse" value="tei:macroSpec"/> </pattern> ... <pattern id="egia-attDef" is-a="en-gloss-if-any"> <param name="gse" value="tei:attDef"/> </pattern> ... <pattern id="egia-valItem" is-a="en-gloss-if-any"> <param name="gse" value="tei:valItem"/> </pattern> These patterns are used here: <pattern abstract="true" id="en-gloss-if-any"> <rule context="$gse[tei:gloss]"> <assert test="tei:gloss[ lang('en') ]">If there is any gloss inside <value-of select="name(.)"/>, there must be an English gloss.</assert> </rule> </pattern> What's weird there is this bit: <assert test="tei:gloss[ lang('en') ]"> Surely we'd expect <assert test="tei:gloss[@xml:lang='en']">, wouldn't we? That said, I've never actually used Abstract Patterns in Schematron so I may be missing something obvious. Cheers, Marttin On 2021-02-03 9:13 a.m., Peter Stadler wrote:
Yes, exactly!
Am 03.02.2021 um 17:25 schrieb Martin Holmes
: Hi Peter,
On Chapter documents and Spec files, I'm still getting this series of errors:
Variable gse has not been declared (or its declaration is not in scope) (from p5odds.isosch)
java.lang.IllegalStateException-Errors were reported during stylesheet compilation (from p5.nvdl)
IllegalStateException - getSchemaProperties requires a schema (from the document)
Does this align with what you're seeing?
Cheers, Martin
On 2021-02-03 7:27 a.m., Peter Stadler wrote:
I’m opening the URL http://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/relea... in my oXygen23 and hit the „Validate“ button. This produces the following error report from oXygen: ``` <?xml version="1.0" encoding="UTF-8"?> <report xmlns="http://www.oxygenxml.com/ns/report"> <incident> <engine>Jing</engine> <severity>fatal</severity> <description>Variable gse has not been declared (or its declaration is not in scope)</description> <systemID>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</systemID> <operationDescription> <mainValidationFile>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</mainValidationFile> </operationDescription> </incident> <incident> <engine>Jing</engine> <severity>fatal</severity> <description>Variable gse has not been declared (or its declaration is not in scope)</description> <systemID>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</systemID> <operationDescription> <mainValidationFile>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</mainValidationFile> </operationDescription> </incident> <incident> <engine>Jing</engine> <severity>error</severity> <description>IllegalStateException - Errors were reported during stylesheet compilation</description> <systemID>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</systemID> <operationDescription> <mainValidationFile>https://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/rele...</mainValidationFile> </operationDescription> </incident> </report> ``` Now you probably ask: „Yes, but *what* schema is it trying to validate the file at http://jenkins.tei-c.org/job/TEIP5-dev/lastSuccessfulBuild/artifact/P5/relea... agains?!“ – I don’t know. Peter
Am 03.02.2021 um 16:03 schrieb Bauman, Syd
: Trying to validate which schema file against which schema?
Just trying to validate the schema itself in oXygen.
_______________________________________________ Tei-council mailing list Tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
Tei-council mailing list Tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
-- ------------------------------------- Humanities Computing and Media Centre University of Victoria mholmes@uvic.ca _______________________________________________ Tei-council mailing list Tei-council@lists.tei-c.org http://lists.lists.tei-c.org/mailman/listinfo/tei-council
-- ------------------------------------- Humanities Computing and Media Centre University of Victoria mholmes@uvic.ca