<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE window SYSTEM "chrome://transerver/locale/transerver.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/MediaCoderPrefs/node[@key='videoenc']/node[@key='xvid']">
<window xmlns:html="http://www.w3.org/1999/xhtml"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        flex="1"
        >
     <label style="font-weight:bold">Xvid Encoder</label>
    <grid flex="1">
        <columns>
            <column/><column/>
        </columns>
        <rows>
            
            <row align="center">
                <label>&pref.xsl.profile;</label>
            </row>
            <row align="center">
                <menulist flex="false" oncommand="OnMenuChange2(this,'videoenc.xvid.profile')">
                    <menupopup>
                        <xsl:for-each select="./node[@key='profile']/enum">
                        <menuitem>
                            <xsl:attribute name="label"><xsl:value-of select="."/></xsl:attribute>
                            <xsl:if test=".=../value"><xsl:attribute name="selected">true</xsl:attribute></xsl:if>
                        </menuitem>
                        </xsl:for-each>
                    </menupopup>
                </menulist>
            </row>
             <row align="center">
                <checkbox label="&pref.xsl.xvid.hqac;" oncommand="OnCheckboxChange2(this,'videoenc.xvid.hqac')">
                     <xsl:if test="./node[@key='hqac']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                </checkbox>
                  <label>&pref.xsl.x264.bframe;</label>
                <textbox onchange="OnTextboxChange2(this,'videoenc.xvid.bframes');" size="8" type="number" max="4" min="0">
                    <xsl:attribute name="value"><xsl:value-of select="./node[@key='bframes']/value"/></xsl:attribute>
                </textbox>
             </row>
              <row align="center">
                <checkbox label="&pref.xsl.xvid.greyscale;" oncommand="OnCheckboxChange2(this,'videoenc.xvid.greyscale')">
                    <xsl:if test="./node[@key='greyscale']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                </checkbox>
             </row>
              <row align="center">
                <checkbox label="&pref.xsl.xvid.cartoon;" oncommand="OnCheckboxChange2(this,'videoenc.xvid.cartoon')">
                     <xsl:if test="./node[@key='cartoon']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                </checkbox>
             </row>
               <row align="center">
                <checkbox label="&pref.xsl.xvid.qpel;" oncommand="OnCheckboxChange2(this,'videoenc.xvid.qpel')">
                    <xsl:if test="./node[@key='qpel']/value='true'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                </checkbox>
             </row>
            <row align="center">
                <checkbox label="&pref.xsl.xvid.gmc;" oncommand="OnCheckboxChange2(this,'videoenc.xvid.gmc')">
                  <xsl:if test="./node[@key='qpel']/value='gmc'"><xsl:attribute name="checked">true</xsl:attribute></xsl:if>
                </checkbox>
                 <button label="&pref.xsl.btn.tree;" oncommand="OnOpenAdvancedSplitter('adv_splitter')"></button>
             </row>
        </rows>
    </grid>
</window>

</xsl:template>
</xsl:stylesheet>