Padding Content
<!-- this is the function for making a field the right width -->
<xsl:template name="leftjustify">
<xsl:param name="content"/>
<xsl:param name="width"/>
<xsl:choose>
<xsl:when test="string-length($content) > $width">
<xsl:value-of select="substring($content,1,$width)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$content"/>
<xsl:call-template name="spaces">
<xsl:with-param name="length">
<xsl:param name="width"/>
<xsl:choose>
<xsl:when test="string-length($content) > $width">
<xsl:value-of select="substring($content,1,$width)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$content"/>
<xsl:call-template name="spaces">
<xsl:with-param name="length">
<xsl:value-of select="$width - string-length($content)"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="spaces">
<xsl:param name="length"/>
<!-- the value of this next variable is 255 spaces.. -->
<xsl:variable name="longstringofspaces"><xsl:text> </xsl:text></xsl:variable>
<xsl:value-of select="substring($longstringofspaces,1,$length)"/>
</xsl:template>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="spaces">
<xsl:param name="length"/>
<!-- the value of this next variable is 255 spaces.. -->
<xsl:variable name="longstringofspaces"><xsl:text> </xsl:text></xsl:variable>
<xsl:value-of select="substring($longstringofspaces,1,$length)"/>
</xsl:template>
12 comments:
pes 2011 apk
yesmovies
putlocker
news whatsapp groups
Thanks for your information, I was searching this for whole two days.
Also try Nulls Royale
Thank you for sharing this, it was helpful!
Thanks for the detailed article on this topic. I would like to see more such awesome articles from you.
Thanks for sharing this valuable piece of information. Keep sharing more such awesome articles in the future. Goodbye!
The information you have shared here is very helpful. I really like and appreciate your work. Thanks again for it, keep us updated in future!
Your post is helping me a lot. Its really nice and epic. Thanks a lot for the useful info on this topic. You did it so much well. I love to see more about GB WhatsApp. Keep sharing and updating. Also share more posts with us. Thank you.
Thanks for keeping us updated, keep up the good work!
All of the beneficial casinos here are are|listed under are} reliable sites that keep gamers protected. They respect gambling rules and age restrictions, offering an excellent real cash gaming expertise in a secure environment dedicated to gamers' welfare and security online. It even gives you a magnificent bonus every single day and nice chances to win the Jackpot. You 아벤카지노 can double or quadruple your bets to have a better chance of winning. As you improve the degrees, you will unlock thrilling features. Of the best free slot machine apps, that is the one which receives essentially the most positive responses from customers on the internet.
Post a Comment