Skip to content

Instantly share code, notes, and snippets.

@henningjensen
Created May 30, 2014 08:52
Show Gist options
  • Save henningjensen/7bf939e0cebaa6deca3a to your computer and use it in GitHub Desktop.
Save henningjensen/7bf939e0cebaa6deca3a to your computer and use it in GitHub Desktop.
GeoNetwork - debug metadata search results view
<div style="border: 1px solid black; margin: 20px;">
<ul>
<xsl:for-each select="$metadata/*" >
<li>
<p><b><xsl:value-of select="name(.)" /></b> = <xsl:value-of select="." /></p>
<p>Attributes:</p>
<xsl:for-each select="@*">
<p>- <xsl:value-of select="concat(name(), ': ', ., ' ')"/></p>
</xsl:for-each>
</li>
</xsl:for-each>
</ul>
<p>geonet:info</p>
<ul>
<xsl:for-each select="$metadata/geonet:info/*" >
<li>
<b><xsl:value-of select="name(.)" /></b> = <xsl:value-of select="." />
</li>
</xsl:for-each>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment