Stylesheet Details
- Identifiers
- Uuid
- ABCF5826-EB26-B7A9-E040-0AC8C5BB45BC
- Owner
- richard.fozzard
- Update Information
- Last Updater
- martin.aubrey
- Last Updated
- 2012-06-14 08:00:14 UTC
- Date Created
- 2011-12-06 00:00:00 UTC
- Attributes
- Index Data
- Matches:gmd:CI_ResponsibleParty ,
- Xml
- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet 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" xmlns:srv="http://www.isotc211.org/2005/srv" version="1.0" id="ABCF5826-EB26-B7A9-E040-0AC8C5BB45BC"> <!--xd:doc scope="stylesheet" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"> <xd:desc> <xd:p>ISO CI_ResponsibleParty to EML View</xd:p> <xd:p>This stylesheet generates an EML View for an ISO CI_ResponsibleParty component</xd:p> </xd:desc> </xd:doc--> <xsl:output method="text" /> <xsl:template match="gmd:CI_ResponsibleParty"> <xsl:variable name="OrganisationName" select="/gmd:CI_ResponsibleParty/gmd:organisationName" /> <xsl:variable name="IndividualName" select="/gmd:CI_ResponsibleParty/gmd:individualName" /> <xsl:variable name="PositionName" select="/gmd:CI_ResponsibleParty/gmd:positionName" /> <xsl:variable name="Voice" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice" /> <xsl:variable name="Fax" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:facsimile" /> <xsl:variable name="Address" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address" /> <xsl:variable name="DeliveryPoint" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint" /> <xsl:variable name="City" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city" /> <xsl:variable name="AdministrativeArea" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:administrativeArea" /> <xsl:variable name="PostalCode" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode" /> <xsl:variable name="Country" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:country" /> <xsl:variable name="ElectronicMailAddress" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress" /> <xsl:variable name="linkage" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL" /> <rp:party xmlns:rp="eml://ecoinformatics.org/party-2.0.1"> <xsl:if test="$OrganisationName/gco:CharacterString[normalize-space()!='']"> <organizationName> <xsl:value-of select="$OrganisationName/gco:CharacterString" /> </organizationName> </xsl:if> <xsl:if test="$IndividualName/gco:CharacterString[normalize-space()!='']"> <individualName> <surName> <xsl:value-of select="$IndividualName/gco:CharacterString" /> </surName> </individualName> </xsl:if> <xsl:if test="$PositionName/gco:CharacterString[normalize-space()!='']"> <positionName> <xsl:value-of select="$PositionName/gco:CharacterString" /> </positionName> </xsl:if> <xsl:if test="$Address"> <address> <xsl:if test="$DeliveryPoint/gco:CharacterString[normalize-space()!='']"> <deliveryPoint> <xsl:value-of select="$DeliveryPoint/gco:CharacterString" /> </deliveryPoint> </xsl:if> <xsl:if test="$City/gco:CharacterString[normalize-space()!='']"> <city> <xsl:value-of select="$City/gco:CharacterString" /> </city> </xsl:if> <xsl:if test="$AdministrativeArea/gco:CharacterString[normalize-space()!='']"> <administrativeArea> <xsl:value-of select="$AdministrativeArea/gco:CharacterString" /> </administrativeArea> </xsl:if> <xsl:if test="$PostalCode/gco:CharacterString[normalize-space()!='']"> <postalCode> <xsl:value-of select="$PostalCode/gco:CharacterString" /> </postalCode> </xsl:if> <xsl:if test="$Country/gco:CharacterString[normalize-space()!='']"> <country> <xsl:value-of select="$Country/gco:CharacterString" /> </country> </xsl:if> </address> </xsl:if> <xsl:if test="$Voice/gco:CharacterString[normalize-space()!='']"> <phone phonetype="voice"> <xsl:value-of select="$Voice/gco:CharacterString" /> </phone> </xsl:if> <xsl:if test="$Fax/gco:CharacterString[normalize-space()!='']"> <phone phonetype="facsimile"> <xsl:value-of select="$Fax/gco:CharacterString" /> </phone> </xsl:if> <xsl:if test="$ElectronicMailAddress/gco:CharacterString[normalize-space()!='']"> <electronicMailAddress> <xsl:value-of select="$ElectronicMailAddress/gco:CharacterString" /> </electronicMailAddress> </xsl:if> <xsl:if test="$linkage[normalize-space()!='']"> <onlineUrl> <xsl:value-of select="$linkage" /> </onlineUrl> </xsl:if> </rp:party> </xsl:template> </xsl:stylesheet>
- Stylesheet Type
- eml
- Component Type
- {http://www.isotc211.org/2005/gmd}CI_ResponsibleParty
- Stylesheet Set
- NGDC-SS