Stylesheet Details
  • Identifiers
  • Uuid
  • 0ba09309-a68a-4c9b-85bd-170855bf8358
  • Owner
  • amilan
  • Update Information
  • Last Updater
  • amilan
  • Last Updated
  • 2017-07-05 13:08:14 UTC
  • Date Created
  • 2017-07-05 13:08:14 UTC
  • Attributes
  • Index Data
  • Matches:Update on:Mar 1, 2017 Author: amilan/ , , ,
  • Xml
  • <xsl:stylesheet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cat="http://standards.iso.org/iso/19115/-3/cat/1.0" xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/1.0" xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0" xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0" xmlns:lan="http://standards.iso.org/iso/19115/-3/lan/1.0" xmlns:srv="http://standards.iso.org/iso/19115/-3/srv/2.0" xmlns:mas="http://standards.iso.org/iso/19115/-3/mas/1.0" xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0" xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0" xmlns:mda="http://standards.iso.org/iso/19115/-3/mda/1.0" xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/1.0" xmlns:mds="http://standards.iso.org/iso/19115/-3/mds/1.0" xmlns:mdt="http://standards.iso.org/iso/19115/-3/mdt/1.0" xmlns:mex="http://standards.iso.org/iso/19115/-3/mex/1.0" xmlns:mmi="http://standards.iso.org/iso/19115/-3/mmi/1.0" xmlns:mpc="http://standards.iso.org/iso/19115/-3/mpc/1.0" xmlns:mrc="http://standards.iso.org/iso/19115/-3/mrc/1.0" xmlns:mrd="http://standards.iso.org/iso/19115/-3/mrd/1.0" xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0" xmlns:mrl="http://standards.iso.org/iso/19115/-3/mrl/1.0" xmlns:mrs="http://standards.iso.org/iso/19115/-3/mrs/1.0" xmlns:msr="http://standards.iso.org/iso/19115/-3/msr/1.0" xmlns:mdq="http://standards.iso.org/iso/19157/-2/mdq/1.0" xmlns:mac="http://standards.iso.org/iso/19115/-3/mac/1.0" xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" exclude-result-prefixes="cat cit gcx gex lan srv mas mcc mco mda mdb mds mdt mex mmi mpc mrc mrd mri mrl mrs msr mdq mac gco gml xlink xd xsi xs" version="2.0"> <xd:doc scope="stylesheet"> <!-- purpose: to translate ISO 19115-3 XML to HTML and provide links to the ISO Explorer on the ESIP Wiki --> <xd:desc> <xd:p><xd:b>Update on:</xd:b>Mar 1, 2017 </xd:p> <xd:p><xd:b>Author:</xd:b> amilan</xd:p> </xd:desc> </xd:doc> <xsl:output encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" omit-xml-declaration="yes" indent="no"/> <!--<xsl:include href="https://www.ngdc.noaa.gov/metadata/published/xsl/isoAltViews.xsl"/>--> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title>ISO Explorer Guide for ISO 19115-1</title> <style type="text/css"> a:link{ text-decoration: none; } a:visited{ text-decoration: none; } a:hover{ text-decoration: underline; } a:active{ text-decoration: underline; }</style> </head> <body> <table cellpadding="10"> <tr> <td> <xsl:comment> TOC</xsl:comment> <xsl:call-template name="toc"/> </td> </tr> <tr><td><hr/></td></tr> <tr> <td> <xsl:comment> CONTENT</xsl:comment> <xsl:call-template name="content"/> </td> </tr> </table> </body> </html> </xsl:template> <xsl:template name="toc"> <xsl:for-each select="//element()"> <xsl:choose> <xsl:when test="(local-name(.) = 'spatialRepresentationInfo') or (local-name(.) = 'referenceSystemInfo') or (local-name(.) = 'metadataExtensionInfo') or (local-name(.) = 'identificationInfo') or (local-name(.) = 'contentInfo') or (local-name(.) = 'distributionInfo') or (local-name(.) = 'dataQualityInfo') or (local-name(.) = 'resourceLineage') or (local-name(.) = 'portrayalCatalogueInfo') or (local-name(.) = 'metadataConstraints') or (local-name(.) = 'applicationSchemaInfo') or (local-name(.) = 'metadataMaintenance') or (local-name(.) = 'metadataMaintenanceInfo') or (local-name(.) = 'acquisitionInformation') or (local-name(.) = 'seriesMetadata')"> <a href="#{generate-id(.)}" xmlns="http://www.w3.org/1999/xhtml" lang="en"> <xsl:value-of select="local-name(.)"/> </a> <br xmlns="http://www.w3.org/1999/xhtml"/> </xsl:when> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template name="content"> <!--<body xmlns="http://www.w3.org/1999/xhtml" lang="en">--> <h2 xmlns="http://www.w3.org/1999/xhtml" lang="en"> <xsl:for-each select="//mdb:identificationInfo/mri:MD_DataIdentification/mri:citation/cit:CI_Citation/cit:title/gco:CharacterString"> <xsl:value-of select="normalize-space(.)"/> </xsl:for-each> </h2> <xsl:for-each select="//element()"> <xsl:variable name="elementName"> <xsl:value-of select="local-name()"/> </xsl:variable> <xsl:variable name="depth"> <xsl:value-of select="xs:integer(count(ancestor::node()))"/> </xsl:variable> <xsl:choose> <xsl:when test="($elementName = 'CharacterString') or ($elementName = 'Integer') or ($elementName = 'Date') or ($elementName = 'Boolean') or ($elementName = 'Decimal') or ($elementName = 'URL')"/> <xsl:when test="($elementName = 'spatialRepresentationInfo') or ($elementName = 'referenceSystemInfo') or ($elementName = 'metadataExtensionInfo') or ($elementName = 'identificationInfo') or ($elementName = 'contentInfo') or ($elementName = 'distributionInfo') or ($elementName = 'dataQualityInfo') or ($elementName = 'resourceLineage') or ($elementName = 'portrayalCatalogueInfo') or ($elementName = 'metadataConstraints') or ($elementName = 'applicationSchemaInfo') or ($elementName = 'metadataMaintenance') or ($elementName = 'metadataMaintenanceInfo') or ($elementName = 'acquisitionInformation') or ($elementName = 'seriesMetadata')"> <br xmlns="http://www.w3.org/1999/xhtml"/> <a xmlns="http://www.w3.org/1999/xhtml" lang="en"><xsl:attribute name="href" select="'#top'"/>return to top</a> <hr xmlns="http://www.w3.org/1999/xhtml" lang="en"/> <xsl:for-each select="1 to $depth">&#160;&#160;</xsl:for-each> <strong xmlns="http://www.w3.org/1999/xhtml" lang="en"> <a xmlns="http://www.w3.org/1999/xhtml" lang="en" name="{generate-id(.)}"> <xsl:value-of select="$elementName"/> <xsl:text>: </xsl:text> </a> </strong> </xsl:when> <xsl:when test="not(contains($elementName, '_'))"> <br xmlns="http://www.w3.org/1999/xhtml"/> <xsl:for-each select="1 to $depth">&#160;&#160;</xsl:for-each> <strong xmlns="http://www.w3.org/1999/xhtml" lang="en"> <xsl:value-of select="$elementName"/> <xsl:text>: </xsl:text> </strong> </xsl:when> <xsl:when test="contains($elementName, '_')"> <xsl:text>&#160;</xsl:text> <a xmlns="http://www.w3.org/1999/xhtml" lang="en" class="a"> <xsl:attribute name="href"> <xsl:value-of select="concat('http://wiki.esipfed.org/index.php/', $elementName)"/> </xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> <font xmlns="http://www.w3.org/1999/xhtml" lang="en" color="gray">(<xsl:value-of select="$elementName"/>)</font> </a> </xsl:when> </xsl:choose> <xsl:for-each select="./attribute::node()"> <xsl:variable name="attributeName"> <xsl:value-of select="local-name()"/> </xsl:variable> <xsl:choose> <xsl:when test="contains($attributeName, 'code') or contains($attributeName, 'schema')"/> <!--<xsl:when test="($attributeName='href')"> <xsl:text>&#160;</xsl:text><i xmlns="http://www.w3.org/1999/xhtml"><font color="gray"><xsl:value-of select="'xlink'"/><xsl:text>: </xsl:text><xsl:value-of select="normalize-space(.)"/></font></i> </xsl:when>--> <xsl:when test="($attributeName = 'href')"> <xsl:text>&#160;</xsl:text> <!--<i xmlns="http://www.w3.org/1999/xhtml"> <font color="gray"> <xsl:value-of select="'xlink'"/> <xsl:text>: </xsl:text> <a xmlns="http://www.w3.org/1999/xhtml"class="a"> <xsl:attribute name="href"> <xsl:value-of select="normalize-space(.)"/> </xsl:attribute> <xsl:attribute name="target">blank</xsl:attribute> <xsl:value-of select="normalize-space(.)"/> </a> </font> </i>--> <a xmlns="http://www.w3.org/1999/xhtml" class="a"> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="contains(../@xlink:href, 'docucomp')"> <xsl:value-of select="concat(normalize-space(../@xlink:href), '.guide')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space(../@xlink:href)"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="target">blank</xsl:attribute> <xsl:attribute name="title" select="../@xlink:href"/> <xsl:choose> <xsl:when test="normalize-space(../@xlink:title)"> <xsl:value-of select="normalize-space(../@xlink:title)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space(../@xlink:href)"/> </xsl:otherwise> </xsl:choose> </a> </xsl:when> <!--<xsl:when test="($attributeName='title') or ($attributeName='uuid')"> <xsl:text>&#160;</xsl:text> <i xmlns="http://www.w3.org/1999/xhtml"> <font color="gray"> <xsl:value-of select="$attributeName"/> <xsl:text>: </xsl:text> <xsl:value-of select="normalize-space(.)"/> </font> </i> </xsl:when> <xsl:otherwise> <xsl:text>&#160;</xsl:text> <i xmlns="http://www.w3.org/1999/xhtml"> <font color="gray"> <xsl:value-of select="normalize-space(.)"/> </font> </i> </xsl:otherwise>--> </xsl:choose> </xsl:for-each> <xsl:choose> <xsl:when test="count(child::text()) = 1"> <xsl:variable name="content"> <xsl:value-of select="child::text()"/> </xsl:variable> <xsl:choose> <xsl:when test="starts-with($content, 'http://')"> <a xmlns="http://www.w3.org/1999/xhtml" lang="en" class="a"> <xsl:attribute name="href"> <xsl:value-of select="$content"/> </xsl:attribute> <font xmlns="http://www.w3.org/1999/xhtml" lang="en" color="SlateBlue"> <xsl:value-of select="$content"/> </font> </a> </xsl:when> <xsl:when test="starts-with($content, 'https://')"> <a xmlns="http://www.w3.org/1999/xhtml" lang="en" class="a"> <xsl:attribute name="href"> <xsl:value-of select="$content"/> </xsl:attribute> <font xmlns="http://www.w3.org/1999/xhtml" lang="en" color="SlateBlue"> <xsl:value-of select="$content"/> </font> </a> </xsl:when> <xsl:when test="starts-with($content, 'ftp://')"> <a xmlns="http://www.w3.org/1999/xhtml" lang="en" class="a"> <xsl:attribute name="href"> <xsl:value-of select="$content"/> </xsl:attribute> <font xmlns="http://www.w3.org/1999/xhtml" lang="en" color="SlateBlue"> <xsl:value-of select="$content"/> </font> </a> </xsl:when> <xsl:otherwise> <xsl:text>&#160;</xsl:text> <xsl:value-of select="$content"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:if test="@gco:nilReason"> <i xmlns="http://www.w3.org/1999/xhtml"> (<xsl:value-of select="@gco:nilReason"/>) </i> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:for-each> <!--</body>--> </xsl:template> </xsl:stylesheet>
  • Stylesheet Type
  • guide
  • Component Type
  • {http://standards.iso.org/iso/19115/-3/cit/1.0}CI_Citation
  • Stylesheet Set
  • NGDC-SS