Schematron errors with XML Spy update
-
Hello, My office is using a schematron script that was created by an employee who does now work at our institution anymore. It was working fine until we upgraded to XMLSpy 2019. Then the scripts stopped working and we got error messages about not being able to retrieve the source (error message 1). When trying to validate the file that the schematron script is processing it does not validate as if the element declaration is not correct anymore (error message 2). Does anyone have any advices on how to fix it? thanks, Rachel Error Message 1:
File S:\Metadata\Code\Schematron\Schematron_ETD.xsl: XSL transformation failed
Cannot retrieve resource 'S://Metadata/ETD/Staging/MODS/u0015_0000001_0003253.mods.xml'
Error location: xsl:stylesheet / xsl:template / xsl:for-each / xsl:apply-templates / @select
Details
System Error 2: The system cannot find the file specified.
I/O Error 400: Don't know how to deal with relative URI (scheme name is missing).
I/O operation on file 'S:\\Metadata\ETD\Staging\MODS\u0015_0000001_0003253.mods.xml' failed.
FODC0002: Cannot use the URI supplied as the first argument to the 'doc' function, to retrieve a resource containing XMLError message 2:
File S:\Metadata\ETD\Documentation\xmllists\20190605xmlList.xml is not valid.
File S:\Metadata\Code\Schematron\Schematron_ETD.xsl has errors.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet
Details
cvc-assess-elt.1: Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet / xsl:import
Details
cvc-assess-elt.1: Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet / xsl:output
Details
cvc-assess-elt.1: Neither an element declaration nor a ty -
Hello, My office is using a schematron script that was created by an employee who does now work at our institution anymore. It was working fine until we upgraded to XMLSpy 2019. Then the scripts stopped working and we got error messages about not being able to retrieve the source (error message 1). When trying to validate the file that the schematron script is processing it does not validate as if the element declaration is not correct anymore (error message 2). Does anyone have any advices on how to fix it? thanks, Rachel Error Message 1:
File S:\Metadata\Code\Schematron\Schematron_ETD.xsl: XSL transformation failed
Cannot retrieve resource 'S://Metadata/ETD/Staging/MODS/u0015_0000001_0003253.mods.xml'
Error location: xsl:stylesheet / xsl:template / xsl:for-each / xsl:apply-templates / @select
Details
System Error 2: The system cannot find the file specified.
I/O Error 400: Don't know how to deal with relative URI (scheme name is missing).
I/O operation on file 'S:\\Metadata\ETD\Staging\MODS\u0015_0000001_0003253.mods.xml' failed.
FODC0002: Cannot use the URI supplied as the first argument to the 'doc' function, to retrieve a resource containing XMLError message 2:
File S:\Metadata\ETD\Documentation\xmllists\20190605xmlList.xml is not valid.
File S:\Metadata\Code\Schematron\Schematron_ETD.xsl has errors.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet
Details
cvc-assess-elt.1: Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet / xsl:import
Details
cvc-assess-elt.1: Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Neither an element declaration nor a type definition is known for element . Strict assessment failed.
Error location: xsl:stylesheet / xsl:output
Details
cvc-assess-elt.1: Neither an element declaration nor a tyMember 14599986 wrote:
Neither an element declaration nor a type definition is known for element xsl:stylesheet. Strict assessment failed.
That looks like the obvious place to start. Does your
Schematron_ETD.xsl
file have the correctxsl
namespace declaration?<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ...>
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer