XSLT - Conditional example

0 votes
207 views
added Sep 26, 2019 in XSLT by anonymous
<!--condition-->
 <xsl:when test="$position = 3">
    <!-- /35039992/AU_TP_MOB_DP_MREC1 -->
    <div id='div-gpt-ad-xxx55075xxxxx-3' style='height:250px; width:300px; margin:auto; margin-bottom: 10px; margin-top: 10px;'>
      <script type='text/javascript'>
        googletag.cmd.push(function() { googletag.display('div-gpt-ad-1455507520370-3'); });
      </script>
    </div>
<!--call template-->
  <xsl:call-template name="AdBlocking_300x250" />
 </xsl:when>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...