From: <sp...@us...> - 2011-08-09 14:24:34
|
Revision: 8093 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=8093&view=rev Author: sppigot Date: 2011-08-09 14:24:28 +0000 (Tue, 09 Aug 2011) Log Message: ----------- Remove geonet: elements from xml output for eml-gbif and iso19139.mcp Add dataParameters to csw ogc-full output for iso19139.mcp Modified Paths: -------------- schemaPlugins/trunk/eml-gbif/convert/xml_eml-gbif.xsl schemaPlugins/trunk/iso19139.mcp/convert/xml_iso19139.mcp.xsl schemaPlugins/trunk/iso19139.mcp/present/csw/ogc-full.xsl Modified: schemaPlugins/trunk/eml-gbif/convert/xml_eml-gbif.xsl =================================================================== --- schemaPlugins/trunk/eml-gbif/convert/xml_eml-gbif.xsl 2011-08-09 14:02:48 UTC (rev 8092) +++ schemaPlugins/trunk/eml-gbif/convert/xml_eml-gbif.xsl 2011-08-09 14:24:28 UTC (rev 8093) @@ -4,6 +4,7 @@ xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:dc="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:geonet="http://www.fao.org/geonetwork" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- This stylesheet produces eml-gbif metadata in XML format --> @@ -29,6 +30,9 @@ </xsl:copy> </xsl:template> + <!-- Delete any GeoNetwork specific elements --> + <xsl:template match="geonet:*"/> + <!-- Copy everything else --> <xsl:template match="@*|node()"> <xsl:copy> Modified: schemaPlugins/trunk/iso19139.mcp/convert/xml_iso19139.mcp.xsl =================================================================== --- schemaPlugins/trunk/iso19139.mcp/convert/xml_iso19139.mcp.xsl 2011-08-09 14:02:48 UTC (rev 8092) +++ schemaPlugins/trunk/iso19139.mcp/convert/xml_iso19139.mcp.xsl 2011-08-09 14:24:28 UTC (rev 8093) @@ -4,6 +4,7 @@ xmlns:mcp="http://bluenet3.antcrc.utas.edu.au/mcp" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:geonet="http://www.fao.org/geonetwork" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- This stylesheet produces iso19139.mcp metadata in XML format --> @@ -29,6 +30,9 @@ </xsl:copy> </xsl:template> + <!-- Delete any GeoNetwork specific elements --> + <xsl:template match="geonet:*"/> + <!-- Copy everything else --> <xsl:template match="@*|node()"> <xsl:copy> Modified: schemaPlugins/trunk/iso19139.mcp/present/csw/ogc-full.xsl =================================================================== --- schemaPlugins/trunk/iso19139.mcp/present/csw/ogc-full.xsl 2011-08-09 14:02:48 UTC (rev 8092) +++ schemaPlugins/trunk/iso19139.mcp/present/csw/ogc-full.xsl 2011-08-09 14:24:28 UTC (rev 8093) @@ -224,6 +224,18 @@ </xsl:if> </xsl:for-each> + <!-- Data Parameters - select those used in dataset only --> + + <xsl:for-each select="gmd:identificationInfo/*/mcp:dataParameters/*/mcp:dataParameter/*/mcp:parameterName/*[mcp:usedInDataset/*='true']"> + <dc:dataParameter + definition="{string(mcp:localDefinition/*)}" + units="{string(../../mcp:parameterUnits/*/mcp:name/*)}" + minValue="{string(../../mcp:parameterMinimumValue/*)}" + maxValue="{string(../../mcp:parameterMaximumValue/*)}" + desc="{string(../../mcp:parameterDescription/*)}"> + <xsl:value-of select="string(mcp:name/*)"/> + </dc:dataParameter> + </xsl:for-each> <!-- GeoNetwork elements added when resultType is equal to results_with_summary --> <xsl:if test="$displayInfo = 'true'"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |