<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Shahar Dag (Technion-Israel Institute of Technology) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:template match="/">
		<html>
			<head>
				<title>your title</title>
			</head>
			<body>
				<xsl:apply-templates select="*"/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="Global">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="boolean(HOLD_PREVIOUS)">
						<b>HOLD_PREVIOUS </b>
						<br/>
						<br/>
					</xsl:if>
					<xsl:apply-templates select="CONST"/>
					<xsl:apply-templates select="TYPE"/>
					<xsl:apply-templates select="VAR"/>
					<xsl:apply-templates select="DEFINE"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="boolean(HOLD_PREVIOUS)">
					<b>HOLD_PREVIOUS </b>
					<br/>
					<br/>
				</xsl:if>
				<xsl:apply-templates select="CONST"/>
				<xsl:apply-templates select="TYPE"/>
				<xsl:apply-templates select="VAR"/>
				<xsl:apply-templates select="DEFINE"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="CONST">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<dd/>
						<b>CONST</b>
						<br/>
						<xsl:apply-templates/>
						<br/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<dd/>
					<b>CONST</b>
					<br/>
					<xsl:apply-templates/>
					<br/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="TYPE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<dd/>
						<b>TYPE</b>
						<br/>
						<xsl:apply-templates/>
						<br/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<dd/>
					<b>TYPE</b>
					<br/>
					<xsl:apply-templates/>
					<br/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="VAR">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<dd/>
						<b>VAR</b>
						<br/>
						<xsl:apply-templates/>
						<br/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<dd/>
					<b>VAR</b>
					<br/>
					<xsl:apply-templates/>
					<br/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="DEFINE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<dd/>
						<b>DEFINE</b>
						<br/>
						<xsl:apply-templates/>
						<br/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<dd/>
					<b>DEFINE</b>
					<br/>
					<xsl:apply-templates/>
					<br/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="ConstDef">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/>: <xsl:apply-templates select="Expr"/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/>: <xsl:apply-templates select="Expr"/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="TypeDef">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/>:<xsl:apply-templates select="Range"/>
					<xsl:apply-templates select="Scalarset"/>
					<xsl:apply-templates select="Enum"/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/>:<xsl:apply-templates select="Range"/>
				<xsl:apply-templates select="Scalarset"/>
				<xsl:apply-templates select="Enum"/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="VarDef">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/>:<xsl:apply-templates select="Typename"/>
					<xsl:apply-templates select="INITVAL"/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/>:<xsl:apply-templates select="Typename"/>
				<xsl:apply-templates select="INITVAL"/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Def">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/> := <xsl:apply-templates select="Expr"/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/> := <xsl:apply-templates select="Expr"/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Module">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>MODULE </b>
					<xsl:value-of select="ATOM"/>(<xsl:apply-templates select="Params"/>) {<br/>
					<xsl:apply-templates select="DEFINE"/>
					<xsl:apply-templates select="VAR"/>
					<xsl:apply-templates select="COJOIN"/>
					<xsl:value-of select="Comment"/>
					<xsl:if test="boolean(Transition)">
						<xsl:apply-templates select="Transition"/>
					</xsl:if>
					<xsl:if test="boolean(Modcombin)">
						<dd/>(<xsl:apply-templates select="Modcombin"/>)<br/>
					</xsl:if>}<br/>
					<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>MODULE </b>
				<xsl:value-of select="ATOM"/>(<xsl:apply-templates select="Params"/>) {<br/>
				<xsl:apply-templates select="DEFINE"/>
				<xsl:apply-templates select="VAR"/>
				<xsl:apply-templates select="COJOIN"/>
				<xsl:value-of select="Comment"/>
				<xsl:if test="boolean(Transition)">
					<xsl:apply-templates select="Transition"/>
				</xsl:if>
				<xsl:if test="boolean(Modcombin)">
					<dd/>(<xsl:apply-templates select="Modcombin"/>)<br/>
				</xsl:if>}<br/>
				<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Params">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Param">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/>: <xsl:apply-templates select="Typename"/>
					<xsl:if test="last() != position()">,</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/>: <xsl:apply-templates select="Typename"/>
				<xsl:if test="last() != position()">,</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="COJOIN">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<dd/>
						<b>COJOIN:</b>
						<xsl:apply-templates/>;<br/>
						<br/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<dd/>
					<b>COJOIN:</b>
					<xsl:apply-templates/>;<br/>
					<br/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Typename">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="ArrayType">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		ARRAY [<xsl:apply-templates select="Expr"/>] OF <xsl:apply-templates select="Typename"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		ARRAY [<xsl:apply-templates select="Expr"/>] OF <xsl:apply-templates select="Typename"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="INITVAL">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">
						<b> INITVAL </b>
						<xsl:apply-templates select="Expr"/>
					</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">
					<b> INITVAL </b>
					<xsl:apply-templates select="Expr"/>
				</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Range">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>..<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>..<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Scalarset">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		0 .. <xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		0 .. <xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Enum">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		  ENUM {<xsl:for-each select="ATOM">
						<xsl:apply-templates/>
						<xsl:if test="last() != position()">,</xsl:if>
					</xsl:for-each>}
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		  ENUM {<xsl:for-each select="ATOM">
					<xsl:apply-templates/>
					<xsl:if test="last() != position()">,</xsl:if>
				</xsl:for-each>}
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Modcombin">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="INST">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="ATOM"/>(<xsl:apply-templates select="Modparams"/>)<xsl:apply-templates select="Renames"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="ATOM"/>(<xsl:apply-templates select="Modparams"/>)<xsl:apply-templates select="Renames"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Modparams">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:for-each select="Expr">
						<xsl:apply-templates/>
						<xsl:if test="last() != position()">,</xsl:if>
					</xsl:for-each>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:for-each select="Expr">
					<xsl:apply-templates/>
					<xsl:if test="last() != position()">,</xsl:if>
				</xsl:for-each>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Renames">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="last()">[<xsl:apply-templates/>]</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="last()">[<xsl:apply-templates/>]</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Rename">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Pair"/>-><xsl:value-of select="ATOM"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Pair"/>-><xsl:value-of select="ATOM"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="ASYNC">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		(<xsl:apply-templates select="Modcombin[1]"/> ||| <xsl:apply-templates select="Modcombin[2]"/>)
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		(<xsl:apply-templates select="Modcombin[1]"/> ||| <xsl:apply-templates select="Modcombin[2]"/>)
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="SYNC">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		(<xsl:apply-templates select="Modcombin[1]"/> || <xsl:apply-templates select="Modcombin[2]"/>)
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		(<xsl:apply-templates select="Modcombin[1]"/> || <xsl:apply-templates select="Modcombin[2]"/>)
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="PART">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		(<xsl:apply-templates select="Modcombin[1]"/> | <xsl:apply-templates select="Pair"/> | <xsl:apply-templates select="Modcombin[2]"/>)
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		(<xsl:apply-templates select="Modcombin[1]"/> | <xsl:apply-templates select="Pair"/> | <xsl:apply-templates select="Modcombin[2]"/>)
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Pair">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="count(Pair) + count(ATOM) = 1">
						<xsl:value-of select="ATOM"/>
					</xsl:if>
					<xsl:if test="count(Pair) + count(ATOM) = 2">(<xsl:apply-templates select="Pair[1]"/>,<xsl:apply-templates select="Pair[2]"/>)</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="count(Pair) + count(ATOM) = 1">
					<xsl:value-of select="ATOM"/>
				</xsl:if>
				<xsl:if test="count(Pair) + count(ATOM) = 2">(<xsl:apply-templates select="Pair[1]"/>,<xsl:apply-templates select="Pair[2]"/>)</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Transition">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>Trans    </b>
					<xsl:value-of select="ATOM"/>:<br/>
					<xsl:apply-templates select="Enable"/>
					<xsl:apply-templates select="Assign"/>
					<xsl:apply-templates select="Relation"/>
					<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>Trans    </b>
				<xsl:value-of select="ATOM"/>:<br/>
				<xsl:apply-templates select="Enable"/>
				<xsl:apply-templates select="Assign"/>
				<xsl:apply-templates select="Relation"/>
				<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Enable">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<dd/>
					<b>enable:</b>
					<xsl:apply-templates/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<dd/>
				<b>enable:</b>
				<xsl:apply-templates/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Assign">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<dd/>
					<b>assign:</b>
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<dd/>
				<b>assign:</b>
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Assignment">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>:=<xsl:apply-templates select="Expr[2]"/>;
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>:=<xsl:apply-templates select="Expr[2]"/>;
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Relation">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<dd/>
					<b>relation:</b>
					<xsl:apply-templates/>;<br/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<dd/>
				<b>relation:</b>
				<xsl:apply-templates/>;<br/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Expr">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:if test="count(Expr) > 1">(</xsl:if>
					<xsl:apply-templates/>
					<xsl:if test="count(Expr) > 1">)</xsl:if>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:if test="count(Expr) > 1">(</xsl:if>
				<xsl:apply-templates/>
				<xsl:if test="count(Expr) > 1">)</xsl:if>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="PLUS">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>+<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>+<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="MINUS">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>-<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>-<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="DIVIDE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>/<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>/<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="TIMES">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>*<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>*<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="MOD">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>%<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>%<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="EQUAL">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>=<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>=<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="NOTEQUAL">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>!=<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>!=<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="EQUAL">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>=<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>=<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="LE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>&lt;=<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>&lt;=<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="GE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>&gt;=<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>&gt;=<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="LT">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>&lt;<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>&lt;<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="GT">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>&gt;<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>&gt;<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="OR">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>\/<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>\/<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="AND">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Expr[1]"/>/\<xsl:apply-templates select="Expr[2]"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Expr[1]"/>/\<xsl:apply-templates select="Expr[2]"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="NOT">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">!<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">!<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="PAR_EXPR">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		(<xsl:apply-templates/>)
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		(<xsl:apply-templates/>)
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="ARRAY">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates select="Atom"/>[<xsl:apply-templates select="Expr"/>]
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates select="Atom"/>[<xsl:apply-templates select="Expr"/>]
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Neatomset">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
		{<xsl:for-each select="Constant">
						<xsl:apply-templates/>
						<xsl:if test="last() != position()">,</xsl:if>
					</xsl:for-each>}
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
		{<xsl:for-each select="Constant">
					<xsl:apply-templates/>
					<xsl:if test="last() != position()">,</xsl:if>
				</xsl:for-each>}
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Constant">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Genconst">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Boolconst">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Number">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="node()"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="node()"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="TRUE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>true</b>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>true</b>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="FALSE">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>false</b>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>false</b>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="ATOM">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:value-of select="node()"/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:value-of select="node()"/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="Atom">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="TaggedAtom">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<xsl:apply-templates/>'
	</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<xsl:apply-templates/>'
	</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="BOOL">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>boolean</b>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>boolean</b>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="INTEGER">
		<xsl:choose>
			<xsl:when test="boolean(color)">
				<font color="#ff000">
					<b>INTEGER</b>
				</font>
			</xsl:when>
			<xsl:when test="not(boolean(color))">
				<b>INTEGER</b>
			</xsl:when>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>

