Advertisement
JorgeDeJesus

Untitled

Oct 18th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.82 KB | None | 0 0
  1.   <!-- Restrictions -->
  2.         <div id="restrictions.table" style="display:none; margin-top:5px; margin-bottom:5px">
  3.           <!-- Source -->
  4.           <div class="row">
  5.             <span class="labelField">
  6.               <xsl:value-of select="/root/gui/strings/porCatInfoTab"/>
  7.             </span>
  8.             <select class="content" name="siteId" id="siteId">
  9.               <option value="">
  10.                 <xsl:if test="/root/gui/searchDefaults/siteId=''">
  11.                   <xsl:attribute name="selected"/>
  12.                 </xsl:if>
  13.                 <xsl:value-of select="/root/gui/strings/any"/>
  14.               </option>
  15.                 <xsl:variable name="source" select="siteid/text()"/>
  16.                 <xsl:variable name="sourceName" select="name/text()"/>
  17.                 <option value="/root/gui/sources/record[name='ISRIC']/siteid/text()">
  18.                   <xsl:if test="$source=/root/gui/searchDefaults/siteId">
  19.                     <xsl:attribute name="selected"/>
  20.                   </xsl:if>
  21.                   <xsl:value-of select="/root/gui/sources/record[name='ISRIC']/name"/>
  22.                 </option>
  23.                 <xsl:for-each select="/root/gui/sources/record">
  24.                   <xsl:variable name="source" select="siteid/text()"/>
  25.                   <xsl:variable name="sourceName" select="name/text()"/>
  26.                   <xsl:if test="$sourceName != 'ISRIC'">
  27.                     <option value="{$source}">
  28.                       <xsl:if test="$source=/root/gui/searchDefaults/siteId">
  29.                         <xsl:attribute name="selected"/>
  30.                       </xsl:if>
  31.                       <xsl:value-of select="$sourceName"/>
  32.                     </option>
  33.                   </xsl:if>
  34.                 </xsl:for-each>
  35.               <!--</xsl:for-each> -->
  36.             </select>
  37.           </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement