<!--                                                                  -->
<!--  Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--  $Id$  -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:variable name="tab" select="'&#x09;'" />
    <xsl:variable name="newLine" select="'&#xD;&#xA;'" />
    <xsl:variable name="cmd" select="/Root/Params/c" />

    <xsl:template name="formatDollars">
        <xsl:param name="dollarAmount" />
        <xsl:value-of select="$dollarAmount" />
    </xsl:template>

    <xsl:template name="replaceLineBreak">
        <xsl:param name="string"/>
        <xsl:choose>
            <xsl:when test="contains($string,'&#10;')">
                <xsl:value-of select="substring-before($string,'&#10;')"/>
                <xsl:text>, </xsl:text>
                <xsl:call-template name="replaceLineBreak">
                    <xsl:with-param name="string" select="substring-after($string,'&#10;')"/>
                </xsl:call-template>
            </xsl:when>
            <xsl:otherwise>
                <xsl:value-of select="$string"/>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

</xsl:stylesheet>
