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
/
_include
/
launcher.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2007-09-19
|
4KB
|
87 lines
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="extensions.xml" --><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<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"/>
<xsl:template match="/extensions">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MediaCoder Extensions</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="_css/style.css" />
<script language="JavaScript" src="_include/extension.js" type="text/javascript"></script>
<script langauge="javascript">
window.innerWidth = 680;
window.innerHeight = 300;
function OpenWindow(url, opt)
{
window.open(url, "", opt);
}
</script>
</head>
<body>
<div class="extension" style="position:fixed;width: 100%; height: 100%; background:url('/img/back.png');" align="center">
<table width="100%" border="0">
<tr valign="top">
<td align="center" width="16%"><div><img src="_images/devnav-phone.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='phone']"/></xsl:call-template></td>
<td align="center" width="16%"><div><img src="_images/devnav-pmp.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='pmp']"/></xsl:call-template></td>
<td align="center" width="16%"><div><img src="_images/devnav-game.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='game']"/></xsl:call-template></td>
<td align="center" width="16%"><div><img src="_images/devnav-pda.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='pda']"/></xsl:call-template></td>
<td align="center" width="16%"><div><img src="_images/devnav-home.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='home']"/></xsl:call-template></td>
<td align="center"><div><img src="_images/devnav-other.png"/></div>
<xsl:call-template name="ListExtensions"><xsl:with-param name="node" select="category[@id='other']"/></xsl:call-template>
<div style="font-weight:bold"><a href="javascript:OpenWindow('/prefs/main.xul','width=600,height=360,resizable=yes')">Preferences</a></div>
</td>
</tr>
</table>
<br/>
<div align="center">
<iframe src="http://www.mediacoder.cn/info/extlauncher.html" width="100%" height="80" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template name="ListExtensions">
<xsl:param name="node"/>
<xsl:choose>
<xsl:when test="$node">
<xsl:for-each select="$node/extension">
<div><a><xsl:attribute name="href">
<xsl:choose>
<!--Load Binary Extension-->
<xsl:when test="@plugin">javascript:SendCommand('load_plugin <xsl:value-of select="@plugin"/>');</xsl:when>
<!--Load Script Extension-->
<xsl:otherwise>javascript:OpenWindow('<xsl:value-of select="@id"/>/extension.xml','width=<xsl:value-of select="@width"/>,height=<xsl:value-of select="@height"/>,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=<xsl:choose><xsl:when test="@resizable='true'">yes</xsl:when><xsl:otherwise>no</xsl:otherwise></xsl:choose>');</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<span>
<xsl:if test="@zipped"><xsl:attribute name="style">color:#000066</xsl:attribute></xsl:if>
<xsl:value-of select="@name"/>
</span></a></div>
</xsl:for-each>
</xsl:when>
<xsl:otherwise><div>No extension<br/>available yet</div></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>