Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="text-content">
- <!-- Print the legal waiver description -->
- <xsl:value-of disable-output-escaping="yes" select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.', $description/@Category, '.description'))"/>
- <br/>
- <br/>
- <!-- Get the location for the terms and conditions PDF (for the specific supplier) -->
- <xsl:variable name="location">
- <xsl:value-of select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.conditions'))"/>
- </xsl:variable>
- <!-- Get the text description to use for the terms and conditions link -->
- <xsl:variable name="link-text">
- <xsl:value-of disable-output-escaping="yes" select="i18n:getTextItem($language, concat('vehicle.rateType.',$vendor/@Name, '.termsConditions'))"/>
- </xsl:variable>
- <!-- Check whether the PDF location is a remote URL or a local file -->
- <xsl:choose>
- <xsl:when test="starts-with($location, 'http')">
- <a href="{$location}"> <xsl:value-of select="$link-text"/> </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="{config:getStaticURL()}{$location}"> <xsl:value-of select="$link-text"/> </a>
- </xsl:otherwise>
- </xsl:choose>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement