home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / MediaCoder / MediaCoder2011-R8-5188.exe / htdocs / mc / report.xsl < prev    next >
Extensible Markup Language  |  2008-12-05  |  3KB  |  66 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14. <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"/>
  15. <xsl:template match="/MediaCoderReport">
  16. <html xmlns="http://www.w3.org/1999/xhtml">
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  19. <title>Report</title>
  20. <style>
  21. th, td {
  22. font-size:12px;
  23. font-family:Verdana;
  24. height:24px;
  25. };
  26. </style>
  27. </head>
  28. <body>
  29. <table border="1" cellspacing="0" width="100%">
  30. <tr><th>Path</th>
  31.   <th>Type</th>
  32.   <th>Mime-Type</th>
  33.   <th>Size</th>
  34.   <th>Duration</th>
  35.   <th>Stream</th>
  36.   <th>State</th>
  37.   <th>Speed</th>
  38.   <th>URL</th></tr>
  39. <xsl:for-each select="item">
  40. <tr><td><xsl:value-of select="path"/></td>
  41. <td align="center"><xsl:value-of select="type"/></td>
  42. <td align="center"><xsl:value-of select="mimetype"/></td>
  43. <td align="center"><xsl:if test="size!=-1"><xsl:value-of select="size"/> KB</xsl:if></td>
  44. <td align="center"><xsl:value-of select="duration"/></td>
  45. <td><xsl:for-each select="info/video">
  46. <div><a href="#" onclick="nextSibling.style.display=nextSibling.style.display=='block'?'none':'block'">Video (<xsl:value-of select="@id"/>)</a><div style="display:none">
  47. <xsl:value-of select="codec"/><br/><xsl:value-of select="width"/>x<xsl:value-of select="height"/>@<xsl:value-of select="fps"/>fps<br/><xsl:value-of select="bitrate"/> Kbps</div><br/></div>
  48. </xsl:for-each>
  49. <xsl:for-each select="info/audio">
  50. <div><a href="#" onclick="nextSibling.style.display=nextSibling.style.display=='block'?'none':'block'">Audio (<xsl:value-of select="@id"/>)</a><div style="display:none">
  51. <xsl:value-of select="codec"/><br/><xsl:value-of select="samplerate"/>Hz <xsl:value-of select="channels"/>ch<br/><xsl:value-of select="bitrate"/> Kbps</div><br/></div>
  52. </xsl:for-each></td>
  53. <td align="center"><xsl:if test="done=1">Done</xsl:if></td>
  54. <td align="center"><xsl:if test="benchmark">
  55. <xsl:value-of select="benchmark/speed"/>x 
  56. </xsl:if>
  57. </td>
  58. <td><a target="_blank"><xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute><xsl:value-of select="url"/></a></td>
  59. </tr>
  60. </xsl:for-each>
  61. </table>
  62. </body>
  63. </html>
  64.  
  65. </xsl:template>
  66. </xsl:stylesheet>