home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / multimedia / mediacoder / MediaCoder-0.6.0.3905.exe / extensions / FLVMaker.7z / extension.xsl < prev   
Extensible Markup Language  |  2007-07-10  |  6KB  |  152 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- DWXMLSource="extension.xml" -->
  3. <!DOCTYPE xsl:stylesheet  [
  4.     <!ENTITY nbsp   " ">
  5.     <!ENTITY copy   "©">
  6.     <!ENTITY reg    "®">
  7.     <!ENTITY trade  "™">
  8.     <!ENTITY mdash  "—">
  9.     <!ENTITY ldquo  "“">
  10.     <!ENTITY rdquo  "”"> 
  11.     <!ENTITY pound  "£">
  12.     <!ENTITY yen    "¥">
  13.     <!ENTITY euro   "€">
  14. ]>
  15. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  16.   <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  17.   <!--Include extension shared xsl-->
  18.   <xsl:include href="../_include/extbase.xsl"/>
  19.   <xsl:template match="/extension">
  20.     <html>
  21.     <head>
  22.     <title>MediaCoder <xsl:value-of select="name"/></title>
  23.     <link href="default.css" rel="stylesheet" type="text/css" />
  24.     <xsl:call-template name="InitExtension"/>
  25.     <script language="javascript">
  26.     function onElementChange(id,value)
  27.     {
  28.         if (id == "audio_mode") switch (value) {
  29.         case "ABR":
  30.         case "CBR":
  31.             HideItem("div_audio_quality");
  32.             ShowItem("div_audio_bitrate");
  33.             break;
  34.         case "VBR":
  35.             ShowItem("div_audio_quality");
  36.             HideItem("div_audio_bitrate");
  37.             break;
  38.         }
  39.         //alert(id+"="+value);
  40.     }
  41.     </script>
  42.  
  43.     </head>
  44.     <body class="box1">
  45.     <div style="width:590px" align="center">
  46.       <h2>MediaCoder <xsl:value-of select="name"/></h2>
  47.     </div>
  48.     <div class="box1" style="position:absolute; left: 10px; width: 296px;">
  49.       <div align="left">
  50.         <strong>Video</strong><br />
  51.         <div style="border:solid; height:175px">
  52.           <ul>
  53.             <li>Encoding mode:
  54.             <xsl:call-template name="AddElement">
  55.               <xsl:with-param name="element" select="elements/element[@id='video_mode']"/>
  56.             </xsl:call-template>
  57.             </li>
  58.             <li>Frame per second:
  59.             <xsl:call-template name="AddElement">
  60.               <xsl:with-param name="element" select="elements/element[@id='video_fps']"/>
  61.             </xsl:call-template>
  62.             </li>
  63.             <li>Quality:
  64.             <xsl:call-template name="AddElement">
  65.               <xsl:with-param name="element" select="elements/element[@id='video_quality']"/>
  66.             </xsl:call-template>
  67.             </li>
  68.             <li>Bitrate:
  69.             <xsl:call-template name="AddElement">
  70.               <xsl:with-param name="element" select="elements/element[@id='video_bitrate']"/>
  71.             </xsl:call-template>
  72.             Kbps</li>
  73.             <li>Resolution:
  74.             <xsl:call-template name="AddElement">
  75.               <xsl:with-param name="element" select="elements/element[@id='resolution']"/>
  76.             </xsl:call-template>
  77.             </li>
  78.             <li>Deinterlace:
  79.             <xsl:call-template name="AddElement">
  80.               <xsl:with-param name="element" select="elements/element[@id='deinterlace']"/>
  81.             </xsl:call-template>
  82.             </li>
  83.           </ul>
  84.         </div>
  85.       </div>
  86.     </div>
  87.     <div class="box1" style="position:absolute; left: 320px; width: 280px; height: 248px; " align="left">
  88.       <div>
  89.         <strong><xsl:call-template name="AddElement">
  90.           <xsl:with-param name="element" select="elements/element[@id='enable_audio']"/>
  91.         </xsl:call-template>
  92.         </strong><br />
  93.         <div style="border:solid">
  94.           <ul>
  95.             <!--li>
  96.             Mode: 
  97.             <xsl:call-template name="AddElement">
  98.               <xsl:with-param name="element" select="elements/element[@id='audio_mode']"/>
  99.               <xsl:with-param name="option" select="elements/element[@id='audio_mode']/option[1]"/>
  100.             </xsl:call-template>
  101.             <xsl:call-template name="AddElement">
  102.               <xsl:with-param name="element" select="elements/element[@id='audio_mode']"/>
  103.               <xsl:with-param name="option" select="elements/element[@id='audio_mode']/option[2]"/>
  104.             </xsl:call-template>
  105.             <xsl:call-template name="AddElement">
  106.               <xsl:with-param name="element" select="elements/element[@id='audio_mode']"/>
  107.               <xsl:with-param name="option" select="elements/element[@id='audio_mode']/option[3]"/>
  108.             </xsl:call-template>
  109.             </li-->
  110.             <li>
  111.               <div id="div_audio_quality" style="display:none">Quality:
  112.                 <xsl:call-template name="AddElement">
  113.                   <xsl:with-param name="element" select="elements/element[@id='audio_quality']"/>
  114.                 </xsl:call-template>
  115.               </div>
  116.               <div id="div_audio_bitrate">Bitrate:
  117.                 <xsl:call-template name="AddElement">
  118.                   <xsl:with-param name="element" select="elements/element[@id='audio_bitrate']"/>
  119.                 </xsl:call-template>
  120.               </div>
  121.             </li>
  122.              <li>Resampling:
  123.             <xsl:call-template name="AddElement">
  124.               <xsl:with-param name="element" select="elements/element[@id='resample']"/>
  125.             </xsl:call-template>
  126.             </li>
  127.           </ul>
  128.         </div>
  129.       </div>
  130.       <div style="position:absolute; width: 281px; height: 83px; top: 124px;">
  131.       <strong>Misc.</strong>
  132.       <div style="border:solid">
  133.         <ul>
  134.           <li>
  135.             <xsl:call-template name="AddElement">
  136.               <xsl:with-param name="element" select="elements/element[@id='enable_subtitle']"/>
  137.             </xsl:call-template>
  138.         </li>
  139.         </ul>
  140.       </div>
  141.       </div>
  142.     </div>
  143.     <div class="btn_bg" style="position:absolute; top: 256px; left: 104px; width: 425px; height: 25px;" align="center">
  144.       <input type="button" value="Play Pre-encoding" onclick="SendCommand('play')"/>
  145.       <input type="button" value="Preview Encoded" onclick="SendCommand('preview')"/>
  146.       <input type="button" value="Start Encoding" onclick="SendCommand('transcode')"/>
  147.     </div>
  148.     </body>
  149.     </html>
  150.   </xsl:template>
  151. </xsl:stylesheet>
  152.