Stylesheet Details
- Identifiers
- Uuid
- 7ef2bc60-bc69-11e0-962b-0800200c9a66
- Owner
- richard.fozzard
- Update Information
- Last Updater
- martin.aubrey
- Last Updated
- 2012-06-14 07:59:48 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="7ef2bc60-bc69-11e0-962b-0800200c9a66"> <!--xd:doc scope="stylesheet" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"> <xd:desc> <xd:p>ISO CI_ResponsibleParty to SML View</xd:p> <xd:p>This stylesheet generates an SML 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="IndividualName" select="/gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString" /> <xsl:variable name="OrganisationName" select="/gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString" /> <xsl:variable name="PositionName" select="/gmd:CI_ResponsibleParty/gmd:positionName/gco:CharacterString" /> <xsl:variable name="Voice" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString" /> <xsl:variable name="Fax" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:facsimile/gco:CharacterString" /> <xsl:variable name="DeliveryPoint" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString" /> <xsl:variable name="City" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString" /> <xsl:variable name="AdministrativeArea" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:administrativeArea/gco:CharacterString" /> <xsl:variable name="PostalCode" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString" /> <xsl:variable name="Country" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:country/gco:CharacterString" /> <xsl:variable name="ElectronicMailAddress" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString" /> <xsl:variable name="linkage" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL" /> <xsl:variable name="name" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:name/gco:CharacterString" /> <xsl:variable name="HoursOfService" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService/gco:CharacterString" /> <xsl:variable name="ContactInstructions" select="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions/gco:CharacterString" /> <xsl:variable name="RoleCodeValue" select="/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode" /> <sml:ResponsibleParty xmlns:sml="http://www.opengis.net/sensorML/1.0.1" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sensorML/1.0.1 http://schemas.opengis.net/sensorML/1.0.1/sensorML.xsd"> <xsl:if test="$IndividualName"> <sml:individualName> <xsl:value-of select="$IndividualName" /> </sml:individualName> </xsl:if> <xsl:if test="$OrganisationName"> <sml:organizationName> <xsl:value-of select="$OrganisationName" /> </sml:organizationName> </xsl:if> <xsl:if test="PositionName"> <sml:positionName> <xsl:value-of select="$PositionName" /> </sml:positionName> </xsl:if> <sml:contactInfo> <sml:phone> <xsl:if test="$Voice"> <sml:voice> <xsl:value-of select="$Voice" /> </sml:voice> </xsl:if> <xsl:if test="$Fax"> <sml:facsimile> <xsl:value-of select="$Fax" /> </sml:facsimile> </xsl:if> </sml:phone> <sml:address> <xsl:if test="$DeliveryPoint"> <sml:deliveryPoint> <xsl:value-of select="$DeliveryPoint" /> </sml:deliveryPoint> </xsl:if> <xsl:if test="$City"> <sml:city> <xsl:value-of select="$City" /> </sml:city> </xsl:if> <xsl:if test="$AdministrativeArea"> <sml:administrativeArea> <xsl:value-of select="$AdministrativeArea" /> </sml:administrativeArea> </xsl:if> <xsl:if test="$PostalCode"> <sml:postalCode> <xsl:value-of select="$PostalCode" /> </sml:postalCode> </xsl:if> <xsl:if test="$Country"> <sml:country> <xsl:value-of select="$Country" /> </sml:country> </xsl:if> <xsl:if test="$ElectronicMailAddress"> <sml:electronicMailAddress> <xsl:value-of select="$ElectronicMailAddress" /> </sml:electronicMailAddress> </xsl:if> </sml:address> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource"> <sml:onlineResource xlink:href="$linkage" /> </xsl:if> <xsl:if test="$HoursOfService"> <sml:hoursOfService> <xsl:value-of select="$HoursOfService" /> </sml:hoursOfService> </xsl:if> <xsl:if test="$ContactInstructions"> <sml:contactInstructions> <xsl:value-of select="$ContactInstructions" /> </sml:contactInstructions> </xsl:if> </sml:contactInfo> </sml:ResponsibleParty> </xsl:template> </xsl:stylesheet>
- Stylesheet Type
- sml
- Component Type
- {http://www.isotc211.org/2005/gmd}CI_ResponsibleParty
- Stylesheet Set
- NGDC-SS