(Relatively) new problem with NVDL validation of TEI Specs

Post here issues about NVDL, not specifically linked to the oNVDL implementation.
martindholmes
Posts: 180
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

(Relatively) new problem with NVDL validation of TEI Specs

Post 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/TEIP ... ntable.xml

which is validated using this:

http://tei.it.ox.ac.uk/jenkins/job/TEIP ... dd/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/TEIP ... dds.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
Radu
Posts: 9253
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9253
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

Hi,

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

http://tei.it.ox.ac.uk/jenkins/job/TEIP ... dds.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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
martindholmes
Posts: 180
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

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

Post by martindholmes »

HI Radu,

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

Thanks,
Martin
Radu
Posts: 9253
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply