[GeoNetwork-devel] personalized schema plugin error - XPathException

Hi Everyone!

I have been trying to develop a personalized metadata schema according to
the steps defined in the Trunk developer manual.

I have created all of the files specified.. and my personalized schema
appears in the schema list. but each time I want to edit a metadata an error
appears:

*""XPathException : Template iso19139.eurac-javascript has not been
defined""*

Has anyone faced this problem before? what was the solution?

Thank you very much for your help!!

Ciao,
Tania
GIS Software Engineer

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/personalized-schema-plugin-error-XPathException-tp4686575p4686575.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Tania,

Plugin schemas might need to be able to supply javascript without having to alter the core javascript files in GeoNetwork - so all plugin schemas need to supply a template called 'schemaname'-javascript (the call is made to this template in web/geonetwork/xsl/metadata-edit.xsl). If you don't have any javascript specific to your profile then you can easily fix this by adding an empty template to your presentation xslt eg.

<xsl:template name="iso19139.eurac-javascript"/>

Check out the plugin schema iso19139.mcp as an example of a profile that needs to include javascript.

I have this down to add to the schema plugins documentation but it's bundled up with some other changes I've made for converters and dependencies that are yet to be committed (soon I hope).

Cheers,
Simon
________________________________________
From: taniapf [tania.puspita@anonymised.com]
Sent: Wednesday, 4 April 2012 11:43 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] personalized schema plugin error - XPathException

Hi Everyone!

I have been trying to develop a personalized metadata schema according to
the steps defined in the Trunk developer manual.

I have created all of the files specified.. and my personalized schema
appears in the schema list. but each time I want to edit a metadata an error
appears:

*""XPathException : Template iso19139.eurac-javascript has not been
defined""*

Has anyone faced this problem before? what was the solution?

Thank you very much for your help!!

Ciao,
Tania
GIS Software Engineer

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/personalized-schema-plugin-error-XPathException-tp4686575p4686575.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Simon,
Thank you very much for the fast reply.
And yes it worked.. the error isn't there anymore. :slight_smile:
Still long to go to finish my schema plugin though

Its very complicated to create a new schema plugin in Geonetwork.
How long did it take to develop the mcp plugin?

I have been working on this for over 3 months! as I am also new in XSD and
XSLT.

Ciao,
Tania

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/personalized-schema-plugin-error-XPathException-tp4686575p4686673.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.