Commit 9b3e7943 authored by Kim Mortimer's avatar Kim Mortimer
Browse files

Correct various typos

parent e8bb004f
......@@ -45,7 +45,19 @@
<xsl:import href="fn.xsl"/>
<xsl:import href="inspire-constant.xsl"/>
<xsl:function name="MER:ByTupleEncloseWithBracket">
<xsl:param name="items"/>
<xsl:sequence
select="if (empty($items))
then ()
else (encloseWithBracket(($items[1],$items[2])),
ByTupleEncloseWithBracket($items[position()>2]) )"
/>
</xsl:function>
<xsl:function name="MER:encloseWithBracket">
<xsl:param name="items"/>
<xsl:value-of select="concat('[',string-join($items,','),']')"/>
</xsl:function>
<xsl:output method="xml" indent="yes"/>
<xsl:output name="default-serialize-mode"
......@@ -695,21 +707,19 @@
<xsl:when test="./gml:exterior/gml:LinearRing/gml:posList">
<!--This is an unbroken list of coordinates so there is only one value to get -->
<xsl:variable name="tokenizedPos" as="xs:string*" select="tokenize(gml:exterior/gml:LinearRing/gml:posList, '\s')"/>
<xsl:template name="fixListExt">
<xsl:value-of
select="
ByTupleEncloseWithBracket($tokenizedPos)
"/>
</xsl:template>
MER:ByTupleEncloseWithBracket($tokenizedPos)
"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="concat('[', $tokenizedPos[1], '\s'), ', ', $tokenizedPos[2], '\s'), ']')"/>
<xsl:value-of select="concat('[', $tokenizedPos[1], ', ', $tokenizedPos[2], ']')"/>
</xsl:when>
<xsl:when test="./gml:LinearRing/gml:coordinates">
<xsl:variable name="tokenizedCoord" as="xs:string*" select="tokenize(gml:LinearRing/gml:coordinates, '\s')"/>
<xsl:for-each select="tokenizedCoord">
<xsl:value-of select="concat('[', . , '],')"/>
</xsl:for-each>
<xsl:value-of select="concat('[', substring-before(tokenizedCoord[1], '\s'), ', ', substring-after(tokenizedCoord[1], '\s'), ']')"/>
<xsl:value-of select="concat('[', substring-before($tokenizedCoord[1], '\s'), ', ', substring-after($tokenizedCoord[1], '\s'), ']')"/>
</xsl:when>
<xsl:otherwise>
<!-- insert new function here to handle coordinates, but posRep shouldn't work -->
......@@ -745,14 +755,12 @@
<xsl:text>],
[</xsl:text>
<xsl:variable name="tokenizedPos" as="xs:string*" select="tokenize(gml:LinearRing/gml:posList, '\s')"/>
<xsl:template name="fixListInt">
<xsl:value-of
select="
ByTupleEncloseWithBracket($tokenizedPos)
MER:ByTupleEncloseWithBracket($tokenizedPos)
"/>
</xsl:template>
<xsl:text>,</xsl:text>
<xsl:value-of select="concat('[', $tokenizedPos[1], '\s'), ', ', $tokenizedPos[2], '\s'), ']')"/>
<xsl:value-of select="concat('[', $tokenizedPos[1], ', ', $tokenizedPos[2], ']')"/>
<xsl:text>]</xsl:text>
</xsl:when>
<xsl:when test="./gml:LinearRing/gml:coordinates">
......@@ -762,7 +770,7 @@
<xsl:for-each select="tokenizedCoord">
<xsl:value-of select="concat('[', . , '],')"/>
</xsl:for-each>
<xsl:value-of select="concat('[', substring-before(tokenizedCoord[1], '\s'), ', ', substring-after(tokenizedCoord[1], '\s'), ']')"/>
<xsl:value-of select="concat('[', substring-before($tokenizedCoord[1], '\s'), ', ', substring-after($tokenizedCoord[1], '\s'), ']')"/>
<xsl:text>]</xsl:text>
</xsl:when>
<xsl:otherwise>
......@@ -1163,17 +1171,5 @@
</xsl:otherwise>
</xsl:choose>-->
</xsl:template>
<xsl:function name="ByTupleEncloseWithBracket">
<xsl:param name="items"/>
<xsl:sequence
select="if (empty($items))
then ()
else (encloseWithBracket(($items[1],$items[2])),
ByTupleEncloseWithBracket($items[position()>2]) )"
/>
</xsl:function>
<xsl:function name="encloseWithBracket">
<xsl:param name="items"/>
<xsl:value-of select="concat('[',string-join($items,','),']')"/>
</xsl:function>
</xsl:stylesheet>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment