<!-- if it's not in WGS 84 we can't convert to geoJson -->
<xsl:iftest="contains(@srsName, 'WGS 84') or contains(@srsName, 'WGS84') or contains(@srsName, '') or contains(@srsName, '/4326') or not(@gml:srsName)">
<!-- if it's a polygon it has an exterior -->
<!-- initialize geoJson -->
<xsl:iftest="ends-with(@srsName, '84') or ends-with(@srsName, '4326') or not(@srsName)">
<!-- if it's not in WGS 84 we can't convert to geoJson
if it's a polygon it has an exterior
initialize geoJson
<geojson>
<xsl:text>{"type": "Polygon",</xsl:text>
<xsl:text>"coordinates": [
[</xsl:text>
<xsl:choose>
<!-- determine what type of coordinates are being used -->