[GeoNetwork-devel] Debugging XSLT

Hi,

I am trying to implement some things to iso19139 inspire edit template. For
example I have problem with custom helpers. How can I debug (how you
developers debug it?) the whole process of generating edit metadata UI?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Debugging-XSLT-tp5320164.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi

Thats a tricky stuff, the xslt used in the editor are not that simple to test in 3rd party apps like Oxygen or XMLSpy, so finally what I do is to use xsl:message in the xslt templates in development mode (note that if you use a war file and don’t build with -Penv-dev, this will not work as xslt are cached.

In 3.x versions, the editor is build with https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/xslt/ui-metadata/form-builder.xsl and https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/xslt/ui-metadata/form-configurator.xsl

that delegate to the templates defined in each schema like https://github.com/geonetwork/core-geonetwork/blob/develop/schemas/iso19139/src/main/plugin/iso19139/layout/layout.xsl to render each element.

If you want to check some issue with helpers probably you have to start checking in form-builder.xsl and form-configurator.xsl

Regards,
Jose García

···

On Thu, May 11, 2017 at 1:39 PM, amacar <amadej.pevec@anonymised.com> wrote:

Hi,

I am trying to implement some things to iso19139 inspire edit template. For
example I have problem with custom helpers. How can I debug (how you
developers debug it?) the whole process of generating edit metadata UI?


View this message in context: http://osgeo-org.1560.x6.nabble.com/Debugging-XSLT-tp5320164.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


GeoNetwork-devel mailing list
GeoNetwork-devel@…537…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.

Thank you. Yes I forgot to mentioned that I am using version 3.0.2 with
eclipse and included jetty. I think that /xsl:message/ is good enough to
start with. So if I want to see this xsl:message in returned page I need to
add /-Penv-dev/ parameter to VM arguments in eclipse or where is this
development mode settings? I don't want to stop and start geonetwork
everytime I change something. I am using /?debug/ parameter but it is not
helping.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Debugging-XSLT-tp5320164p5320169.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.