xmlcalabash1
xmlcalabash1 copied to clipboard
Including xsl file in schematron with relative URI does'nt work
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.
Thanks. Can you provide a test case, a schematron schema that has an include?
7b81261 should fix it, and 6e99625 should test it okay.
Thanks, Tony. I'll take a look this evening.