On 11-9-2013 13:41, John Brisbin wrote:
G'Day Frans,
CSW and INSPIRE compliance would be pretty important for a number of people.
Could you post the specifics of the problems that need to be fixed up
with the additional XSL?
Sure! Two problems were identified: Firstly, the root element csw:GetRecordsResponse needed to be removed. Secondly, the gmd:DateStamp element that is automatically generated contains a gco:DateTime instead of a gco:Date.
The xls script below should fix those two issues:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco">
<xsl:template match="@*|node()">
<xsl:copy><xsl:apply-templates select="@*|node()" /></xsl:copy>
</xsl:template>
<xsl:template match="/*">
<xsl:apply-templates select="node()" />
</xsl:template>
<xsl:template match="gmd:dateStamp">
<gmd:dateStamp>
<gco:Date><xsl:value-of select="substring-before(gco:DateTime, 'T')"/></gco:Date>
</gmd:dateStamp>
</xsl:template>
</xsl:stylesheet>
Regards,
Frans
Thanks!
On 11/09/2013 21:10 PM, Frans Knibbe | Geodan wrote:
Hello,
We have set up a metadata service that should be INSPIRE-compliant.
However, there seem to be two small things wrong the response to a
GetRecords request. I have made a XSL script that fixes those problems.
I am trying to find a way to apply this script to the output, but so far
I have not succeeded. Could someone please advise? Is it possible to add
extra XSL transformations to standard CSW output? And if so, how should
it be done?Thanks in advance,
Frans
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained athttp://sourceforge.net/projects/geonetwork
--
--------------------------------------
*Geodan*
President Kennedylaan 1
1079 MB Amsterdam (NL)
T +31 (0)20 - 5711 347
E frans.knibbe@anonymised.com
www.geodan.nl <http://www.geodan.nl> | disclaimer <http://www.geodan.nl/disclaimer>
--------------------------------------