Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- BBOX section -->
- <xsl:template name="bboxDataSection">
- <xsl:variable name="bboxStr" select="./text()" />
- <xsl:variable name="bboxList" select="fn:stringSpliter($bboxStr)" />
- <wps:Input>
- <ows:Identifier>
- <xsl:value-of select="fn:getCorrectInputID(name(.))" />
- </ows:Identifier>
- <wps:Data>
- <xsl:element name="BoundingBoxData" namespace="http://www.opengis.net/wps/1.0.0">
- <xsl:if test="$bboxList[6]">
- <xsl:attribute name="dimension">
- <xsl:value-of select="$bboxList[6]" />
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$bboxList[5]">
- <xsl:attribute name="crs">
- <xsl:value-of select="$bboxList[5]" />
- </xsl:attribute>
- </xsl:if>
- <ows:LowerCorner>
- <xsl:value-of select="concat($bboxList[1],' ',$bboxList[2])" />
- </ows:LowerCorner>
- <ows:UpperCorner>
- <xsl:value-of select="concat($bboxList[2],' ',$bboxList[3])" />
- </ows:UpperCorner>
- </xsl:element>
- </wps:Data>
- </wps:Input>
- </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment