[GeoNetwork-devel] Debugging xsl files with commandline saxon

Hi all,

I’m having problems to debug a xsl file that renders html on the main page of Geonetwork.

I’m trying to use the commandline version of saxon whith the following command:

java -jar d:\apps\Tomcat_8.0.14\webapps\metadatos\WEB-INF\lib\saxon-9.1.0.8b-patch.jar -s:d:\amo\temp\input.xml -xsl:d:\apps\Tomcat_8.0.14\webapps\metadatos\xsl\main-page.xsl

This command returns the following error:

Warning: at xsl:stylesheet on line 4 column 45 of main-page.xsl:
Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Error at xsl:include on line 10 column 69 of metadata-utils.xsl:
XTSE0165: java.io.FileNotFoundException:
d:\apps\Tomcat_8.0.14\webapps\metadatos\xsl\blanks\metadata-schema01\present\metadata.xsl
(El sistema no puede encontrar la ruta especificada)
Error at xsl:call-template on line 2083 column 45 of metadata.xsl:
XTSE0650: No template exists named showMap
Failed to compile stylesheet. 2 errors detected.

It seems I need a file /xsl/blanks/metadata-schema01/present/metadata.xsl that is not present in my installation (Geonetwork is running fine over Tomcat). I read in http://trac.osgeo.org/geonetwork/ticket/1034 that a new mechanism based in a XMLResolver class is used, but I don’t know how to incorporate the resolver to my command.

Tanks in Advance

Alvaro Martin