Page 1 of 1

(Relatively) new problem with NVDL validation of TEI Specs

Posted: Wed Jun 10, 2015 6:37 pm
by martindholmes
Hi there,

Our TEI specification documents (for elements, attribute classes etc.) are validated using NVDL, because they contain a range of external content such as RNG and Schematron which needs to be validated with non-TEI schemas.

An example document would be this one:

http://teijenkins.hcmc.uvic.ca/job/TEIP5/lastSuccessfulBuild/artifact/release/xml/tei/odd/Source/Specs/att.fragmentable.xml

which is validated using this:

http://tei.it.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/release/xml/tei/odd/p5.nvdl

Some time during the lifetime of Oxygen 16.1 (we think), this stopped working properly; now when we validate, we get the following error:

Attribute @xsl:dummy-for-xmlns is not allowed on element <xsl:stylesheet>


which relates to this schema, linked from the nvdl file:

http://tei.it.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/release/xml/tei/odd/p5odds.isosch

The handling of the isosch file in Oxygen seems to involve some processing which triggers the error.

Does anyone know why this might be happening, and what we can do to avoid it?

All help appreciated,
Martin

Re: (Relatively) new problem with NVDL validation of TEI Spe

Posted: Mon Jun 15, 2015 3:13 pm
by Radu
Hi Martin,

Sorry for the delay, I set this aside last week because I knew I had a lot of digging to do in order to find the cause.
NVDL + ISO Schematron validation uses some XSLT stylesheets to produce from the original Schematron schema the XSLT stylesheet which will be used to signal the errors.

Probably because of updates we made to the bundled Saxon 9 XSLT processor from one Oxygen version to another, at some point the processor became less lenient with error reporting and started failing when compiling the XSLT stylesheet which would have signaled possible errors.
I think I have a possible fix for this, if you contact us via email I could try to send you a patch so that you can try to fix on your side.

Regards,
Radu

Re: (Relatively) new problem with NVDL validation of TEI Spe

Posted: Tue Jun 16, 2015 8:40 am
by Radu
Hi,

One way to avoid the problem would be that in the Schematron file:

http://tei.it.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/release/xml/tei/odd/p5odds.isosch

to replace this namespace declaration:

Code: Select all

<ns prefix="xsl" uri="http://www.w3.org/1999/XSL/Transform"/>


with one with a different prefix like:

Code: Select all

<ns prefix="xslt" uri="http://www.w3.org/1999/XSL/Transform"/>


and use that "xslt" prefix in the XPath expressions which required the use of "xsl".

Regards,
Radu

Re: (Relatively) new problem with NVDL validation of TEI Spe

Posted: Tue Jun 23, 2015 8:51 pm
by martindholmes
HI Radu,

I've written off-list to get the patch to try.

Thanks,
Martin

Re: (Relatively) new problem with NVDL validation of TEI Specs

Posted: Fri Dec 18, 2015 1:34 pm
by Radu
Hi,

Just to update this thread, Oxygen 17.1 should have a fix for the original problem.

Regards,
Radu