View stylesheet

XML schemas
Output type HTML
Description FGases company size status selector
XSL file fgases-company-size.xsl (Last modified: 02 Feb 2016 15:01 )
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="xml" indent="yes" encoding="UTF-8"/>

    <xsl:param name="companyId"/>

    <xsl:template match="/">
        <companySize>
            <xsl:element name="isLarge">
                <xsl:choose>
                    <xsl:when test="count(/child::*/child::*[CompanyID=$companyId]) > 0">
                        <xsl:text>true</xsl:text>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:text>false</xsl:text>
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:element>
        </companySize>
    </xsl:template>

</xsl:stylesheet>