<?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='audioenc']/node[@key='lame']">
<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">MP3 Lame Encoder</label>
        <vbox>
            <grid>
                <columns>
                    <column/><column/><column/><column/><column/>
                </columns>
                <rows>
                    <row align="center">
                          <label>&pref.xsl.preset;</label>
                            <menulist flex="false" oncommand="OnMenuChange2(this,'audioenc.lame.preset')">
                           <menupopup>
                               <xsl:for-each select="./node[@key='preset']/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">
                        <label>&pref.xsl.audio.rate.mode;</label>
                         <menulist flex="false" oncommand="OnMenuChange2(this,'audioenc.lame.mode')">
                            <menupopup>
                                <xsl:for-each select="./node[@key='mode']/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">
                          <label>&pref.xsl.audio.channel;</label>
                         <menulist flex="false" oncommand="OnMenuChange2(this,'audioenc.lame.stereo')">
                            <menupopup>
                                <xsl:for-each select="./node[@key='stereo']/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">
                         <label>&pref.xsl.audio.quality;</label>
                        <textbox onchange="OnTextboxChange2(this,'audioenc.lame.quality');" size="8" type="number" max="9" min="0" tooltiptext="&pref.xsl.audio.quality.desc;">
                           <xsl:attribute name="value"><xsl:value-of select="./node[@key='quality']/value"/></xsl:attribute>
                       </textbox>                       
                         <button label="&pref.xsl.btn.tree;" oncommand="OnOpenAdvancedSplitter('adv_splitter')"></button>                
                    </row>
                </rows>
            </grid>
        </vbox>
</window>
</xsl:template>
</xsl:stylesheet>