<?xml version="1.0" ?>
<!DOCTYPE stylesheet
[
<!ENTITY nbsp    "&#160;">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		version="1.0"
                xmlns:vmp="http://www.hoise.com/vmp/1.0"
                xmlns:xt="http://www.jclark.com/xt"
                extension-element-prefixes="xt">

<xsl:variable name="CMTSetUp" select="document(concat($BaseDirectory,'set-up/cmt.xml'))/vmp:cmt" />

<xsl:template name="format-basis">
<xsl:param name="Title"/>
<xsl:param name="Contents"/>

<xsl:element name="html">
<head>
<link rel="stylesheet" href="{$BaseUrl}css/main.css"/>
<title>VMP - Editor Tool</title>
<script type="text/javascript" language="JavaScript" src="{$BaseUrl}transform/editor/vmp-editor.js">
</script>
</head>


<body bgcolor="#aaeeee"
      onLoad="{$resetForms}" >

<table align="center" 
       valign="center" 
       width="100%" 
       height="100%"
       cellpadding="0"
       cellspacing="0"      
       bgcolor="#aaeeee"
       border="0">
<tr bgcolor="{$SupportColour}">
<td valign="center"  bgcolor="{$SupportColour}"><img src="{$IconDirectory}/logo-vmp.jpg" alt="VMP" width="50px" border="0" valign="center"/></td>
<td width="550px" valign="top"  bgcolor="{$SupportColour}">

<table width="100%"
       cellpadding="0"
       cellspacing="0"      
       bgcolor="#aaeeee">
<tr>
<td valign="center" bgcolor="{$SupportColour}">
<p style="{$CMTSetUp/vmp:layout/vmp:general-heading/@title-style}text-align: center;" valign="top">&nbsp;&nbsp; VMP Content Management Tool - <xsl:value-of select="$Title" />
</p>
</td>
<td valign="center" align="right"  bgcolor="{$SupportColour}">
<img src="{$IconDirectory}/logo-ETG.gif" alt="VMP" border="0" width="200" align="right" valign="top"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<img src="{$IconDirectory}/spacer.gif" height="16px" />
</td>
</tr>

<tr>
<td width="50px">&nbsp;</td>
<td>
<table width="550px" 
       cellpadding="0"
       cellspacing="0"
       bgcolor="#aaeeee">
<xsl:copy-of select="$Contents"/>
</table>
</td>
</tr>
</table>

</body>

</xsl:element>

</xsl:template>

<xsl:template name="format-basis-nxml">
<xsl:param name="Contents"/>
<xsl:param name="Title"/>

<xsl:element name="html">

&lt;head>
&lt;link rel="stylesheet" href="<xsl:value-of select="$BaseUrl" />css/main.css"/>
&lt;title>VMP - Editor Tool&lt;/title>
&lt;script type="text/javascript" language="JavaScript" src="<xsl:value-of select="$BaseUrl" />transform/editor/vmp-editor.js">
&lt;/script>
&lt;/head>
&lt;body bgcolor="#aaeeee"
      onLoad="<xsl:value-of select="$resetForms" />" >

&lt;table align="center" valign="center" width="100%" height="100%" >
&lt;tr bgcolor="<xsl:value-of select="$SupportColour" />">
&lt;td valign="center"  bgcolor="<xsl:value-of select="$SupportColour" />">&lt;img src="<xsl:value-of select="$IconDirectory" />/logo-vmp.jpg" alt="VMP" width="50px" border="0" valign="center"/>&lt;/td>
&lt;td width="550px" valign="top"  bgcolor="<xsl:value-of select="$SupportColour" />">

&lt;table width="100%"
       cellpadding="0"
       cellspacing="0"      
       bgcolor="#aaeeee">
&lt;tr>
&lt;td valign="center" bgcolor="<xsl:value-of select="$SupportColour" />">
&lt;p style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:general-heading/@title-style" />text-align: center;" valign="top">&amp;nbsp;&amp;nbsp; VMP Content Management Tool - <xsl:value-of select="$Title" />
&lt;/p>
&lt;/td>
&lt;td valign="center" align="right"  bgcolor="<xsl:value-of select="$SupportColour" />">
&lt;img src="<xsl:value-of select="$IconDirectory" />/logo-ETG.gif" alt="VMP" border="0" width="200" align="right" valign="top"/>
&lt;/td>
&lt;/tr>
&lt;/table>
&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td colspan="2">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" height="16px" />
&lt;/td>
&lt;/tr>

&lt;tr>&lt;td width="50px">&amp;nbsp;&lt;/td>
&lt;td>
&lt;table width="550px">
<xsl:copy-of select="$Contents"/>
&lt;/table>
&lt;/td>
&lt;/tr>
&lt;/table>
&lt;/body>

</xsl:element>

</xsl:template>


<xsl:template name="s-entry">
<xsl:param name="type" />
<xsl:param name="Label" />
<xsl:param name="Item" />
<xsl:choose>
<xsl:when test="$type = 'ifactsheet'">
<xsl:choose>
<xsl:when test="normalize-space($Item) = '-'">
<tr >
<td colspan="2"
    height="153" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="116" />
</td>
</tr>

</xsl:when>
<xsl:otherwise>
<tr >
<td colspan="2"
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
</tr>
<tr >
<td width="24" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="24" 
     height="16" />
</td>

<td class="SubKopBeheer" bgcolor="#99ccff">
<xsl:copy-of select="$Label" />
</td> 
</tr>
<tr>
<td width="24" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="24" 
     height="16" />
</td>

<td width="168" >
<div><xsl:copy-of select="$Item" /></div>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>

</xsl:when>

<xsl:when test="$type = 'meta'">

<tr>
<td width="1" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>

<td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
 <xsl:copy-of select="$Label" />
</td>

<td width="15" 
    align="left"
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="15" />
</td>

<td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
<td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
</td>

<td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>


<td width="194" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>

</tr>
</xsl:when>

<xsl:otherwise>
<tr>
<td width="1" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>

<td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
 <xsl:copy-of select="$Label" />
</td>

<td width="15" 
    align="left"
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="15" />
</td><td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
<td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
</td>

<td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>

<!--
<td width="194" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
-->
</tr>

</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template name="entry">
<xsl:param name="Label" select="empty-nodeset"/>
<xsl:param name="Item"/>

<xsl:variable name="help-name">
<xsl:choose>
<xsl:when test="not(starts-with(name($Label),'vmp:'))">
<xsl:value-of select="concat(name($Label/parent::node()),'_',name($Label))" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Label" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr>
<td width="1" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>

<td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
<a  href="javascript:popup('{$BaseUrl}set-up/help.html#{$help-name}');">
<div><xsl:value-of select="$Label" /></div>
</a>
</td>

<td width="15" 
    align="left"
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="15" />
</td><td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
<td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
</td>

<td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
<!--

<td width="194" 
    height="16" 
    align="left" 
    valign="top">
<img src="{$IconDirectory}/spacer.gif" 
     width="1" 
     height="16" />
</td>
-->
</tr>


</xsl:template>


<xsl:template name="s-entry-nxml">
<xsl:param name="type" />
<xsl:param name="Label" />
<xsl:param name="Item" />
<xsl:choose>
<xsl:when test="$type = 'ifactsheet'">
<xsl:choose>
<xsl:when test="normalize-space($Item) = '-'">
&lt;tr >
&lt;td colspan="2"
    height="153" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="116" />
&lt;/td>
&lt;/tr>

</xsl:when>
<xsl:otherwise>
&lt;tr >
&lt;td colspan="2"
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
&lt;/tr>
&lt;tr >
&lt;td width="24" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="24" 
     height="16" />
&lt;/td>

&lt;td class="SubKopBeheer" bgcolor="#99ccff">
<xsl:copy-of select="$Label" />
&lt;/td> 
&lt;/tr>
&lt;tr>
&lt;td width="24" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="24" 
     height="16" />
&lt;/td>

&lt;td width="168" >
&lt;div><xsl:copy-of select="$Item" />&lt;/div>
&lt;/td>
&lt;/tr>
</xsl:otherwise>
</xsl:choose>

</xsl:when>

<xsl:when test="$type = 'meta'">

&lt;tr>
&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>

&lt;td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
 <xsl:copy-of select="$Label" />
&lt;/td>

&lt;td width="15" 
    align="left"
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="15" />
&lt;/td>

&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
&lt;td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
&lt;/td>

&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>


&lt;td width="194" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>

&lt;/tr>
</xsl:when>

<xsl:otherwise>
&lt;tr>
&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>

&lt;td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
 <xsl:copy-of select="$Label" />
&lt;/td>

&lt;td width="15" 
    align="left"
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="15" />
&lt;/td>&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
&lt;td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
&lt;/td>

&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>

<!--
&lt;td width="194" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
-->
&lt;/tr>

</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template name="entry-nxml">
<xsl:param name="Label" select="empty-nodeset"/>
<xsl:param name="Item"/>

<xsl:variable name="help-name">
<xsl:choose>
<xsl:when test="not(starts-with(name($Label),'vmp:'))">
<xsl:value-of select="concat(name($Label/parent::node()),'_',name($Label))" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$Label" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
&lt;tr>
&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>

&lt;td width="98" 
    height="17" 
    align="right" 
    valign="top" 
    class="FormTextLeft">
&lt;a  href="javascript:popup('<xsl:value-of select="$BaseUrl" />set-up/help.html#<xsl:value-of select="$help-name" />');">
&lt;div><xsl:value-of select="$Label" />&lt;/div>
&lt;/a>
&lt;/td>

&lt;td width="15" 
    align="left"
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="15" />
&lt;/td>&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
&lt;td width="402" 
    height="16" 
    align="left" 
    valign="top" >
<xsl:copy-of select="$Item" />
&lt;/td>

&lt;td width="1" 
    height="16" 
    align="left" 
    valign="top" 
    bgcolor="#ffffff">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
<!--

&lt;td width="194" 
    height="16" 
    align="left" 
    valign="top">
&lt;img src="<xsl:value-of select="$IconDirectory" />/spacer.gif" 
     width="1" 
     height="16" />
&lt;/td>
-->
&lt;/tr>


</xsl:template>


</xsl:stylesheet>

