<!--                                                                  -->
<!--  Copyright (C) 2011 RoyaltyShare, Inc.   All Rights Reserved     -->
<!--                                                                  -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dyn="http://exslt.org/dynamic"
                extension-element-prefixes="dyn">
    <xsl:output method="html" indent="no" doctype-system="" encoding="utf-8" />

    <xsl:template name="showOptions">
        <xsl:for-each select="/Root/Form/Parameters/*/*">
            <xsl:sort select="@order"/>
            <xsl:if test="name(../.) = 'OptionalData' or name(../.) = 'Groups'">
                <div class="Form-item Form-item-standart">
                    <xsl:call-template name="reportInput">
                        <xsl:with-param name="type">
                            <xsl:value-of select="@type"/>
                        </xsl:with-param>
                        <xsl:with-param name="display">
                            <xsl:value-of select="@display"/>
                        </xsl:with-param>
                        <xsl:with-param name="name">
                            <xsl:value-of select="name(.)"/>
                        </xsl:with-param>
                        <xsl:with-param name="value">
                            <xsl:value-of select="."/>
                        </xsl:with-param>
                        <xsl:with-param name="fieldType">OptionalData</xsl:with-param>
                    </xsl:call-template>
                </div>
            </xsl:if>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>
