Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.26 KB | None | 0 0
  1. <div class="text-content">
  2.                         <!-- Print the legal waiver description -->
  3.                         <xsl:value-of disable-output-escaping="yes" select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.', $description/@Category, '.description'))"/>
  4.                         <br/>
  5.                         <br/>
  6.  
  7.                         <!-- Get the location for the terms and conditions PDF (for the specific supplier) -->
  8.                         <xsl:variable name="location">
  9.                             <xsl:value-of select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.conditions'))"/>
  10.                         </xsl:variable>
  11.  
  12.                         <!-- Get the text description to use for the terms and conditions link -->
  13.                         <xsl:variable name="link-text">
  14.                             <xsl:value-of disable-output-escaping="yes" select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.termsConditions'))"/>
  15.                         </xsl:variable>
  16.  
  17.                         <!-- Check whether the PDF location is a remote URL or a local file -->
  18.                         <xsl:choose>
  19.                             <xsl:when test="starts-with($location, 'http')">
  20.                                 <a href="{$location}"> <xsl:value-of select="$link-text"/> </a>
  21.                             </xsl:when>
  22.                             <xsl:otherwise>
  23.                                 <a href="{config:getStaticURL()}{$location}"> <xsl:value-of select="$link-text"/> </a>
  24.                             </xsl:otherwise>
  25.                         </xsl:choose>
  26.  
  27.                     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement