Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Schematron errors with XML Spy update

Schematron errors with XML Spy update

Scheduled Pinned Locked Moved XML / XSL
xmlhelpwpfcomtools
2 Posts 2 Posters 29 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14599986
    wrote on last edited by
    #1

    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 XML

    Error 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

    Richard DeemingR 1 Reply Last reply
    0
    • M Member_14599986

      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 XML

      Error 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

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Member 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 correct xsl 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

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups