JorgeDeJesus

Untitled

Sep 10th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.04 KB | None | 0 0
  1.     <!-- BBOX section -->
  2.     <xsl:template name="bboxDataSection">
  3.             <xsl:variable name="bboxStr" select="./text()" />
  4.             <xsl:variable name="bboxList" select="fn:stringSpliter($bboxStr)" />
  5.         <wps:Input>
  6.             <ows:Identifier>
  7.                 <xsl:value-of select="fn:getCorrectInputID(name(.))" />
  8.             </ows:Identifier>
  9.             <wps:Data>
  10.                 <xsl:element name="BoundingBoxData" namespace="http://www.opengis.net/wps/1.0.0">
  11.                     <xsl:if test="$bboxList[6]">
  12.                         <xsl:attribute name="dimension">
  13.                         <xsl:value-of select="$bboxList[6]" />
  14.                     </xsl:attribute>
  15.                     </xsl:if>
  16.                     <xsl:if test="$bboxList[5]">
  17.                         <xsl:attribute name="crs">
  18.                      <xsl:value-of select="$bboxList[5]" />
  19.                      </xsl:attribute>
  20.                     </xsl:if>
  21.                     <ows:LowerCorner>
  22.                         <xsl:value-of select="concat($bboxList[1],' ',$bboxList[2])" />
  23.                     </ows:LowerCorner>
  24.                     <ows:UpperCorner>
  25.                         <xsl:value-of select="concat($bboxList[2],' ',$bboxList[3])" />
  26.                     </ows:UpperCorner>
  27.                 </xsl:element>
  28.             </wps:Data>
  29.         </wps:Input>
  30.     </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment