Hi list,
I just installed GeoNetwork 2.10.3 and everything works fine so far apart from...
I'm trying to make my own xsl to dislay metadata, using formatters as explained here :
http://www.geonetwork-opensource.org/manuals/2.8.0/eng/users/managing_metadata/formatter/index.html#formatter
and I can't get my metadata values to display on my html page (the page displays correctly except that the title, abstract etc. from the metadata are blank).
I realise I'm missing something obvious !
Here's a simplified version of my XSL file, which should display "title : <my title>" but which just displays "title : "
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gts="http://www.isotc211.org/2005/gts"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:geonet="http://www.fao.org/geonetwork">
<xsl:output method="html" doctype-system="about:legacy-compat"/>
<xsl:variable name="metadataID">
<xsl:value-of select="gmd:MD_Metadata/gmd:fileIdentifier/gco:CharacterString"/>
</xsl:variable>
<xsl:template match="/">
<html>
<head>
<title>Metadata</title>
</head>
<body>
<img src="map_header.png" alt="map header" width ="700"/>
<p>title</p>
<h1><xsl:value-of select="gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"/></h1>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
I can't get the image to display either.
Thanks a lot for any help !
Julie.