xmlcalabash1 icon indicating copy to clipboard operation
xmlcalabash1 copied to clipboard

Including xsl file in schematron with relative URI does'nt work

Open arkamy opened this issue 11 years ago • 3 comments

If a schematron have to include a xsl file, a relative uri doesn't work. To fix it, I patched the file etc\schematron\iso_dsdl_include.xsl in the calabash jar with adding the following new template at the end of the file :

  <!-- FIX : Use relative URI for xsl:include used in schematron -->
  <xsl:template match="xsl:include" mode="dsdl:go" priority="1">
    <xsl:copy>
      <xsl:attribute name="href" select="resolve-uri(@href, base-uri())"/>
    </xsl:copy>
  </xsl:template>

Thanks to add this patch in calabash or equivalent problem fix.

arkamy avatar Sep 08 '14 09:09 arkamy

Thanks. Can you provide a test case, a schematron schema that has an include?

ndw avatar Sep 09 '14 16:09 ndw

7b81261 should fix it, and 6e99625 should test it okay.

MenteaXML avatar Apr 29 '15 21:04 MenteaXML

Thanks, Tony. I'll take a look this evening.

ndw avatar Apr 30 '15 13:04 ndw