<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:output indent="yes"/>
<xsl:param name="newfilename">filename</xsl:param>
<xsl:template match="plist">
<html>
<head>
<title><xsl:value-of select="$filename"/></title></head>
<body>
	<xsl:apply-templates mode="root"/>
</body>
</html>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="dict" mode="root">
<table width="100%" border="1" cellspacing="0" cellpadding="2">
	<xsl:apply-templates mode="dict"/>
</table>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="dict" mode="dict">
<td valign="middle" align="center">
	<table border="1" cellspacing="0" cellpadding="2">
		<xsl:apply-templates mode="dict"/>
	</table>
</td>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="dict" mode="array">
	<tr>
		<td valign="middle" align="center">
			<table border="1" cellspacing="0" cellpadding="2">
				<xsl:apply-templates mode="dict"/>
			</table>
		</td>
	</tr>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="key" mode="dict">
<xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
<td valign="middle" align="center">
	<h4><xsl:value-of select="."/></h4>
</td>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="key" mode="root">
<h2><center><xsl:value-of select="."/></center></h2>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="array" mode="root">
<table width="100%" border="1" cellspacing="0" cellpadding="2">
	<xsl:apply-templates mode="array"/>
</table>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="array" mode="dict">
<td valign="middle" align="center">
	<table border="1" cellspacing="0" cellpadding="2">
		<xsl:apply-templates mode="array"/>
	</table>
</td>
<xsl:text disable-output-escaping="yes">
&lt;/tr&gt;
</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="string" mode="dict">
<td valign="middle" align="center">
	<xsl:value-of select="."/> 
</td>
<xsl:text disable-output-escaping="yes">
	&lt;/tr&gt;
</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="string" mode="root">
	<xsl:value-of select="."/> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="string" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center"><xsl:value-of select="."/></td>
	</tr> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="integer" mode="dict">
<td valign="middle" align="center">
	<xsl:value-of select="."/> 
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="integer" mode="root">
	<xsl:value-of select="."/> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="integer" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center"><xsl:value-of select="."/></td>
	</tr> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="real" mode="dict">
<td valign="middle" align="center">
	<xsl:value-of select="."/> 
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="real" mode="root">
	<xsl:value-of select="."/> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="real" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center"><xsl:value-of select="."/></td>
	</tr> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="data" mode="dict">
<td valign="middle" align="center">
	<xsl:value-of select="."/> 
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="data" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center"><xsl:value-of select="."/></td>
	</tr> 
</xsl:template>
<xsl:template match="true" mode="dict">
<td valign="middle" align="center">
	YES
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
</xsl:template>
<xsl:template match="true" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center">YES</td>
	</tr> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="true" mode="root">
	YES
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="false" mode="dict">
<td valign="middle" align="center">
	NO
</td>
<xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="false" mode="array">
	<tr>
		<td valign="middle" align="center"><xsl:value-of select="position() div 2 - 1"/></td>
		<td valign="middle" align="center">NO</td>
	</tr> 
</xsl:template>
<!-- -->
<!-- -->
<xsl:template match="false" mode="root">
	NO
</xsl:template>
<!-- -->
<!-- -->
</xsl:stylesheet>
