<?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='nero']">
<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">Nero Encoder</label>
    <grid>
        <columns><column/><column/></columns>
        <rows>
            <row align="center">
                <label>&pref.xsl.profile;</label>
                 <menulist flex="false" oncommand="OnMenuChange2(this,'audioenc.nero.format');">
                      <menupopup>
                          <xsl:for-each select="./node[@key='format']/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.nero.mode');OnEnableChange(this,['text_audio_quality','text_audio_rate','text_audio_rate']);">
                      <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.quality;</label>
                 <textbox onchange="OnTextboxChange2(this,'audioenc.nero.quality');" size="8" type="number" max="100" min="0"  id="text_audio_quality">
                   <xsl:attribute name="value"><xsl:value-of select="./node[@key='quality']/value"/></xsl:attribute>
                   <xsl:if test="./node[@key='mode']/value!='Target Quality'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if>
               </textbox>
             </row>
             <row align="center">
                <label>&pref.xsl.audio.rate;</label>
                 <textbox onchange="OnTextboxChange2(this,'audioenc.nero.rate');" size="8" type="number" max="320" min="0"  id="text_audio_rate">
                   <xsl:attribute name="value"><xsl:value-of select="./node[@key='rate']/value"/></xsl:attribute>
                   <xsl:if test="./node[@key='mode']/value='Target Quality'"><xsl:attribute name="disabled">true</xsl:attribute></xsl:if>
               </textbox>
             </row>
              <row align="center">
                <checkbox label="Hint Track" oncommand="OnCheckboxChange2(this,'audioenc.nero.hint')">
                     <xsl:if test="./node[@key='hint']/value='true'"><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>