<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="xml" encoding="UTF-8"/>
	<xsl:template match="/rss/channel">
		<xsl:call-template name="GeoRSS_to_LMX"/>
	</xsl:template>
	<xsl:template name="GeoRSS_to_LMX">
		<lm:lmx xmlns:lm="http://www.nokia.com/schemas/location/landmarks/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nokia.com/schemas/location/landmarks/1/0/ lmx.xsd">
			<lm:landmarkCollection>
				<xsl:for-each select="item">
					<xsl:if test="geo:Point">
						<lm:landmark>
							<lm:name>
								<xsl:value-of select="title"/>
							</lm:name>
							<lm:description>
								<xsl:value-of select="description"/>
							</lm:description>
							<lm:coordinates>
								<lm:latitude>
									<xsl:value-of select="geo:Point/geo:lat"/>
								</lm:latitude>
								<lm:longitude>
									<xsl:value-of select="geo:Point/geo:long"/>
								</lm:longitude>
							</lm:coordinates>
							<lm:mediaLink>
								<lm:url>
									<xsl:value-of select="link"/>
								</lm:url>
							</lm:mediaLink>
						</lm:landmark>
					</xsl:if>
				</xsl:for-each>
			</lm:landmarkCollection>
		</lm:lmx>
	</xsl:template>
</xsl:stylesheet>
