Stylesheet Details
- Identifiers
- Uuid
- 9010e850-bc69-11e0-962b-0800200c9a66
- Owner
- richard.fozzard
- Update Information
- Last Updater
- martin.aubrey
- Last Updated
- 2012-06-14 07:59:15 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="9010e850-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 OWS View</xd:p> <xd:p>This stylesheet generates an OWS 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" /> <xsl:choose> <xsl:when test="./gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL"> <ows:ServiceProvider xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsAll.xsd"> <ows:ProviderName> <xsl:value-of select="$OrganisationName" /> </ows:ProviderName> <ows:ServiceContact> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:individualName"> <ows:IndividualName> <xsl:value-of select="$IndividualName" /> </ows:IndividualName> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:positionName"> <ows:PositionName> <xsl:value-of select="$PositionName" /> </ows:PositionName> </xsl:if> <ows:ContactInfo> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone"> <ows:Phone> <ows:Voice> <xsl:value-of select="$Voice" /> </ows:Voice> <ows:Facsimile> <xsl:value-of select="$Fax" /> </ows:Facsimile> </ows:Phone> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address"> <ows:Address> <ows:DeliveryPoint> <xsl:value-of select="$DeliveryPoint" /> </ows:DeliveryPoint> <ows:City> <xsl:value-of select="$City" /> </ows:City> <ows:AdministrativeArea> <xsl:value-of select="$AdministrativeArea" /> </ows:AdministrativeArea> <ows:PostalCode> <xsl:value-of select="$PostalCode" /> </ows:PostalCode> <ows:Country> <xsl:value-of select="$Country" /> </ows:Country> <ows:ElectronicMailAddress> <xsl:value-of select="$ElectronicMailAddress" /> </ows:ElectronicMailAddress> </ows:Address> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource"> <ows:OnlineResource> <xsl:attribute name="xlink:href"> <xsl:value-of select="$linkage" /> </xsl:attribute> <xsl:attribute name="xlink:title"> <xsl:value-of select="$name" /> </xsl:attribute> </ows:OnlineResource> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService"> <ows:HoursOfService> <xsl:value-of select="$HoursOfService" /> </ows:HoursOfService> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions"> <ows:ContactInstructions> <xsl:value-of select="$ContactInstructions" /> </ows:ContactInstructions> </xsl:if> </ows:ContactInfo> <ows:Role> <xsl:attribute name="codeSpace"> <xsl:value-of select="$RoleCodeValue" /> </xsl:attribute> </ows:Role> </ows:ServiceContact> </ows:ServiceProvider> </xsl:when> <xsl:otherwise> <ows:PointOfContact xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsAll.xsd"> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:individualName"> <ows:IndividualName> <xsl:value-of select="$IndividualName" /> </ows:IndividualName> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:organisationName"> <ows:OrganisationName> <xsl:value-of select="$OrganisationName" /> </ows:OrganisationName> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:positionName"> <ows:PositionName> <xsl:value-of select="$PositionName" /> </ows:PositionName> </xsl:if> <ows:ContactInfo> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone"> <ows:Phone> <ows:Voice> <xsl:value-of select="$Voice" /> </ows:Voice> <ows:Facsimile> <xsl:value-of select="$Fax" /> </ows:Facsimile> </ows:Phone> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address"> <ows:Address> <ows:DeliveryPoint> <xsl:value-of select="$DeliveryPoint" /> </ows:DeliveryPoint> <ows:City> <xsl:value-of select="$City" /> </ows:City> <ows:AdministrativeArea> <xsl:value-of select="$AdministrativeArea" /> </ows:AdministrativeArea> <ows:PostalCode> <xsl:value-of select="$PostalCode" /> </ows:PostalCode> <ows:Country> <xsl:value-of select="$Country" /> </ows:Country> <ows:ElectronicMailAddress> <xsl:value-of select="$ElectronicMailAddress" /> </ows:ElectronicMailAddress> </ows:Address> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:CI_OnlineResource"> <ows:ContactInfo> <ows:OnlineResource> <xsl:attribute name="xlink:href"> <xsl:value-of select="$linkage" /> </xsl:attribute> <xsl:attribute name="xlink:title"> <xsl:value-of select="$name" /> </xsl:attribute> </ows:OnlineResource> </ows:ContactInfo> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:hoursOfService"> <ows:HoursOfService> <xsl:value-of select="$HoursOfService" /> </ows:HoursOfService> </xsl:if> <xsl:if test="/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:contactInstructions"> <ows:ContactInstructions> <xsl:value-of select="$ContactInstructions" /> </ows:ContactInstructions> </xsl:if> </ows:ContactInfo> <ows:Role> <xsl:attribute name="codeSpace"> <xsl:value-of select="$RoleCodeValue" /> </xsl:attribute> </ows:Role> </ows:PointOfContact> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
- Stylesheet Type
- ows
- Component Type
- {http://www.isotc211.org/2005/gmd}CI_ResponsibleParty
- Stylesheet Set
- NGDC-SS