<?xml version="1.0" ?>
<!DOCTYPE stylesheet 
[
<!ENTITY nbsp    "&#160;">
]>

<!--==================================================================-->
<!--        (c) Genias Benelux 2001                                   -->
<!--       This file is part of the VMP publishing system             -->
<!--      Its contents may  not be copied or used in any way          -->
<!--      outside of a licensed VMP system                            -->
<!--      Date modified  August 4, 2001                                -->
<!--==================================================================-->

<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"
                cdata-section-elements="vmp:switch">
                
<xsl:include href="../set-up/settings.xsl"/>
<xsl:include href="../set-up/format-basis.xsl"/>
<xsl:include href="../set-up/current-date.xsl"/>
<xsl:include href="editor/assistent-menu.xsl"/>
<xsl:include href="editor/format-date-menu.xsl"/>

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


<xsl:variable name="cols" select="'98'" />
<xsl:variable name="cols-fs" select="'20'" />
<xsl:variable name="section-width" select="'200px'" />

<xsl:variable name="SelectGroup"/>
<xsl:variable name="SelectAuthor"/>
<xsl:variable name="SelectName"/>
<xsl:variable name="ErrorMessage"/>

<xsl:variable name="Messages">
<xsl:choose>
<xsl:when test="normalize-space($ErrorMessage) = 'null'">
<xsl:value-of select="'Watch here for messages'" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$ErrorMessage" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="SelectAction"/>
<xsl:variable name="SelectMagazine"/>




<xsl:variable name="ArticleId"/>
<xsl:variable name="Title"/>
<xsl:variable name="Subtitle"/>
<xsl:variable name="SelectScreen" select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]/@screen"/>
<xsl:variable name="BaseArticle" select="document(concat('../temp/',translate(substring($SelectGroup,1,$PrefixLength),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),'-',$ArticleId,'.xml'))" />
<xsl:variable name="BaseSetUp" select="document('../set-up/editor-layout-settings.xml')//vmp:editor-screen[@id = $SelectScreen]" />

<xsl:variable name="resetForms">
<xsl:if test="$BaseSetUp//vmp:lead/@assistent-menu ='yes' " >resetLeadForm(); </xsl:if>
<xsl:if test="$BaseSetUp//vmp:leadshort/@assistent-menu ='yes' " >resetLeadshortForm(); </xsl:if>
<xsl:if test="$BaseSetUp//vmp:leadcon/@assistent-menu ='yes' " >resetLeadconForm(); </xsl:if>
<xsl:if test="$BaseSetUp//vmp:main/@assistent-menu ='yes' " >resetMainForm(); </xsl:if>
<xsl:if test="$BaseSetUp//vmp:ref/@assistent-menu ='yes' " >resetRefForm(); </xsl:if>
</xsl:variable>



<xsl:variable name="Author_name"/>
<xsl:variable name="Author_date"/>

<xsl:variable name="Editor_name0"/>
<xsl:variable name="Editor_date0"/>
<xsl:variable name="Editor_comment0"/>


<xsl:variable name="Editor_name1"/>
<xsl:variable name="Editor_date1"/>
<xsl:variable name="Editor_comment1"/>

<xsl:variable name="Editor_name2"/>
<xsl:variable name="Editor_date2"/>
<xsl:variable name="Editor_comment2"/>


<xsl:variable name="Attach_name0"/>
<xsl:variable name="Attach_description0"/>

<xsl:variable name="Attach_name1"/>
<xsl:variable name="Attach_description1"/>

<xsl:variable name="Attach_name2"/>
<xsl:variable name="Attach_description2"/>

<xsl:variable name="Attach_name3"/>
<xsl:variable name="Attach_description3"/>

<xsl:variable name="Attach_name4"/>
<xsl:variable name="Attach_description4"/>

<xsl:variable name="Part_name0"/>
<xsl:variable name="Part_section0"/>
<xsl:variable name="Part_subsection0"/>
<xsl:variable name="Part_issue0"/>
<xsl:variable name="Part_rank0"/>
<xsl:variable name="Part_status0"/>

<xsl:variable name="Part_name1"/>
<xsl:variable name="Part_section1"/>
<xsl:variable name="Part_subsection1"/>
<xsl:variable name="Part_issue1"/>
<xsl:variable name="Part_rank1"/>
<xsl:variable name="Part_status1"/>


<xsl:variable name="Part_name2"/>
<xsl:variable name="Part_section2"/>
<xsl:variable name="Part_subsection2"/>
<xsl:variable name="Part_issue2"/>
<xsl:variable name="Part_rank2"/>
<xsl:variable name="Part_status2"/>

<xsl:variable name="Part_name3"/>
<xsl:variable name="Part_section3"/>
<xsl:variable name="Part_subsection3"/>
<xsl:variable name="Part_issue3"/>
<xsl:variable name="Part_rank3"/>
<xsl:variable name="Part_status3"/>

<xsl:variable name="Part_name4"/>
<xsl:variable name="Part_section4"/>
<xsl:variable name="Part_subsection4"/>
<xsl:variable name="Part_issue4"/>
<xsl:variable name="Part_rank4"/>
<xsl:variable name="Part_status4"/>

<xsl:variable name="Part_name5"/>
<xsl:variable name="Part_section5"/>
<xsl:variable name="Part_subsection5"/>
<xsl:variable name="Part_issue5"/>
<xsl:variable name="Part_rank5"/>
<xsl:variable name="Part_status1"/>


<xsl:variable name="Part_name6"/>
<xsl:variable name="Part_section6"/>
<xsl:variable name="Part_subsection6"/>
<xsl:variable name="Part_issue6"/>
<xsl:variable name="Part_rank6"/>
<xsl:variable name="Part_status6"/>

<xsl:variable name="Part_name7"/>
<xsl:variable name="Part_section7"/>
<xsl:variable name="Part_subsection7"/>
<xsl:variable name="Part_issue7"/>
<xsl:variable name="Part_rank7"/>
<xsl:variable name="Part_status7"/>


<xsl:variable name="Part_name8"/>
<xsl:variable name="Part_section8"/>
<xsl:variable name="Part_subsection8"/>
<xsl:variable name="Part_issue8"/>
<xsl:variable name="Part_rank8"/>
<xsl:variable name="Part_status8"/>


<xsl:variable name="Part_name9"/>
<xsl:variable name="Part_section9"/>
<xsl:variable name="Part_subsection9"/>
<xsl:variable name="Part_issue9"/>
<xsl:variable name="Part_rank9"/>
<xsl:variable name="Part_status9"/>

<xsl:variable name="Part_name9"/>
<xsl:variable name="Part_section9"/>
<xsl:variable name="Part_subsection9"/>
<xsl:variable name="Part_issue9"/>
<xsl:variable name="Part_rank9"/>
<xsl:variable name="Part_status9"/>

<xsl:variable name="Place_name"/>
<xsl:variable name="Place_date"/>
    
<xsl:variable name="Lead"/>
<xsl:variable name="Leadshort"/>
<xsl:variable name="Leadcon"/>
<xsl:variable name="Main"/>
<xsl:variable name="Ref"/>


<xsl:variable name="Factsheet_item1"/> 
<xsl:variable name="Factsheet_item2"/> 
<xsl:variable name="Factsheet_item3"/> 
<xsl:variable name="Factsheet_item4"/> 
<xsl:variable name="Factsheet_item5"/> 
<xsl:variable name="Factsheet_item6"/> 
<xsl:variable name="Factsheet_item7"/> 
<xsl:variable name="Factsheet_item8"/> 
<xsl:variable name="Factsheet_item9"/> 

<xsl:variable name="Factsheet_item10"/> 
<xsl:variable name="Factsheet_item11"/> 
<xsl:variable name="Factsheet_item12"/> 
<xsl:variable name="Factsheet_item13"/> 
<xsl:variable name="Factsheet_item14"/> 
<xsl:variable name="Factsheet_item15"/> 
<xsl:variable name="Factsheet_item16"/> 
<xsl:variable name="Factsheet_item17"/> 
<xsl:variable name="Factsheet_item18"/> 
<xsl:variable name="Factsheet_item19"/> 

<xsl:variable name="Factsheet_item20"/> 
<xsl:variable name="Factsheet_item21"/> 
<xsl:variable name="Factsheet_item22"/> 
<xsl:variable name="Factsheet_item23"/> 
<xsl:variable name="Factsheet_item24"/> 
<xsl:variable name="Factsheet_item25"/> 
<xsl:variable name="Factsheet_item26"/> 
<xsl:variable name="Factsheet_item27"/> 
<xsl:variable name="Factsheet_item28"/> 
<xsl:variable name="Factsheet_item29"/> 

<xsl:variable name="Factsheet_item30"/> 
<xsl:variable name="Factsheet_item31"/> 
<xsl:variable name="Factsheet_item32"/> 
<xsl:variable name="Factsheet_item33"/> 
<xsl:variable name="Factsheet_item34"/> 
<xsl:variable name="Factsheet_item35"/> 
<xsl:variable name="Factsheet_item36"/> 
<xsl:variable name="Factsheet_item37"/> 
<xsl:variable name="Factsheet_item38"/> 
<xsl:variable name="Factsheet_item39"/> 

<xsl:variable name="Factsheet_item40"/> 
<xsl:variable name="Factsheet_item41"/> 
<xsl:variable name="Factsheet_item42"/> 
<xsl:variable name="Factsheet_item43"/> 
<xsl:variable name="Factsheet_item44"/> 
<xsl:variable name="Factsheet_item45"/> 
<xsl:variable name="Factsheet_item46"/> 
<xsl:variable name="Factsheet_item47"/> 
<xsl:variable name="Factsheet_item48"/> 
<xsl:variable name="Factsheet_item49"/> 

<xsl:variable name="Factsheet_item50"/> 

<xsl:variable name="Factsheet_date1"/> 
<xsl:variable name="Factsheet_date2"/> 
<xsl:variable name="Factsheet_date3"/> 
<xsl:variable name="Factsheet_date4"/> 
<xsl:variable name="Factsheet_date5"/> 
<xsl:variable name="Factsheet_date6"/> 
<xsl:variable name="Factsheet_date7"/> 
<xsl:variable name="Factsheet_date8"/> 
<xsl:variable name="Factsheet_date9"/>
 
<xsl:variable name="Factsheet_date10"/> 

<xsl:variable name="Factsheet_country1"/> 
<xsl:variable name="Factsheet_country2"/> 
<xsl:variable name="Factsheet_country3"/> 
<xsl:variable name="Factsheet_country4"/> 
<xsl:variable name="Factsheet_country5"/> 
<xsl:variable name="Factsheet_country6"/> 
<xsl:variable name="Factsheet_country7"/> 
<xsl:variable name="Factsheet_country8"/> 
<xsl:variable name="Factsheet_country9"/>
 
<xsl:variable name="Factsheet_country10"/> 


<xsl:template match="/">

<!-- ======================Action is Save ================================= -->


<xsl:choose>
<xsl:when test=" $SelectAction = 'save'">
<xt:document href="{concat('temp/',translate(substring($SelectGroup,1,$PrefixLength),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),'-',$ArticleId,'.txt')}" method="xt:nxml">
<nxml>
<control>
<xsl:call-template name="format-basis-nxml">
<xsl:with-param name="Title" ><xsl:value-of select="$SelectMagazine" /><xsl:text> </xsl:text><xsl:value-of select="$BaseSetUp//vmp:custom_name"/></xsl:with-param>
<xsl:with-param name="Contents">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Item">
&lt;table border="0">
&lt;tr>
&lt;td>

&lt;form name="help" action="<xsl:value-of select="$BaseUrl" />set-up/help.html#editscreen" target="help">
&lt;input name="submit" type="submit" value="help" 
                                   style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@button-style" />"/>
&lt;/form>
&lt;/td>
&lt;td>

&lt;form name="back" action="<xsl:value-of select="$BaseUrl" />administration/authors/<xsl:value-of select="$SelectGroup" />/index.html">
&lt;input name="submit" type="submit" value="back to management tool" 
                                   style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@button-style" />  width: 200px;"/>
&lt;/form>
&lt;/td>
&lt;/tr>
&lt;/table>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<!--  The Errormessage  -->
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label">Messages</xsl:with-param>
<xsl:with-param name="Item">&lt;font color="#990000"><xsl:value-of select="$Messages"/>&lt;/font></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item">&lt;p style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item-heading/@title-style" />">Meta-data&lt;/p></xsl:with-param>
</xsl:call-template>


&lt;form action="<xsl:value-of select="$EditorServlet" />"  method="post">






<!--Start van het invulformulier -->
 
<!-- Article-ID -->

<xsl:choose>
<xsl:when test="$BaseSetUp//vmp:article/@fixed-id = 'yes'">


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item">&lt;input type="hidden"  name="articleid" value="<xsl:value-of select="$ArticleId" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>

<xsl:otherwise>
<xsl:call-template name="entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" select="$BaseSetUp//vmp:article/@id"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="articleid" value="<xsl:value-of select="$ArticleId" />" /></xsl:with-param>
</xsl:call-template>
</xsl:otherwise>

</xsl:choose>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>





<!--  =================  For action is Save ============================= -->

<!--  Include voor ihe  
&lt;tr>
&lt;td colspan="7" >
&lt;table  cellpadding="0" cellspacing="0">
&lt;tr>
&lt;td valign="top" >
&lt;table  cellpadding="0" cellspacing="0">
-->

<!-- Author -->

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="author_name" value="<xsl:value-of select='$Author_name' />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Author_date" />
<xsl:with-param name="date-name" select="'author_date'" />
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>


<!-- Editor texts. This is really ugly. Becuase parameter(variables are passed as strings. Look for improvement later.  -->

<xsl:if test="not($BaseSetUp//vmp:editor/@name ='')" >


<xsl:if test="$Editor_name0 != ''">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_name" value="<xsl:value-of select="$Editor_name0" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Editor_date0" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_comment" value="<xsl:value-of select="$Editor_comment0" />" /></xsl:with-param>
</xsl:call-template>
</xsl:if>




<xsl:if test="$Editor_name1 != ''">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_name" value="<xsl:value-of select="$Editor_name1" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Editor_date1" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_comment" value="<xsl:value-of select="$Editor_comment1" />" /></xsl:with-param>
</xsl:call-template>
</xsl:if>



<xsl:if test="$Editor_name2 != ''">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_name" value="<xsl:value-of select="$Editor_name2" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item"><xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Editor_date2" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_comment" value="<xsl:value-of select="$Editor_comment2" />" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="$Editor_name2 = ''">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_name" value=""/></xsl:with-param>
</xsl:call-template>



<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="editor_comment" value=""/></xsl:with-param>
</xsl:call-template>
</xsl:if>



</xsl:if>

 
<!-- Attachments texts. This is really ugly. Because parameter(variables are passed as strings. Look for improvement later.  -->


<xsl:if test="not($BaseSetUp//vmp:attach/@name ='')" >


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label">
&lt;p style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@label-style" />">
<xsl:value-of select="$CMTSetUp/vmp:content/vmp:repository/vmp:item[@type = 'search']/vmp:label"/>
&lt;/p>
</xsl:with-param>
<xsl:with-param name="Item">

&lt;table  cellspacing="1" cellpadding="0" >
&lt;tr> 
&lt;td bgcolor="<xsl:value-of select="$BaseColour" />" valign="top" align="rigth" >
&lt;a href="javascript:popup('<xsl:value-of select="$BaseUrl" />search-repository.html')">
&lt;font color="<xsl:value-of select="$SupportColour" />" size="-1">Search&lt;/font>
&lt;/a>
&lt;/td>
&lt;td bgcolor="<xsl:value-of select="$BaseColour" />" align="rigth" >
&lt;a href="javascript:popup('<xsl:value-of select="$BaseUrl" />upload.html')">
&lt;font color="<xsl:value-of select="$SupportColour" />" size="-1">Upload&lt;/font>
&lt;/a>
&lt;/td>
&lt;/tr>
&lt;/table>

</xsl:with-param>
</xsl:call-template>


<xsl:if test="$Attach_name0 != ''">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="<xsl:value-of select="$Attach_name0" />" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="<xsl:value-of select="$Attach_description0" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachicon">
<xsl:with-param name="Attach_name" select="$Attach_name0"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer-nxml"/>
</xsl:with-param>
</xsl:call-template>

</xsl:if>

<xsl:if test="$Attach_name1 != ''">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="<xsl:value-of select="$Attach_name1" />" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="<xsl:value-of select="$Attach_description1" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachicon">
<xsl:with-param name="Attach_name" select="$Attach_name1"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer-nxml"/>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:if test="$Attach_name2 != ''">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="<xsl:value-of select="$Attach_name2" />" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="<xsl:value-of select="$Attach_description2" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachicon">
<xsl:with-param name="Attach_name" select="$Attach_name2"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer-nxml"/>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:if test="$Attach_name3 != ''">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="<xsl:value-of select="$Attach_name3" />" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="<xsl:value-of select="$Attach_description3" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachicon">
<xsl:with-param name="Attach_name" select="$Attach_name3"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer-nxml"/>
</xsl:with-param>
</xsl:call-template>

</xsl:if>

<xsl:if test="$Attach_name4 != ''">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="<xsl:value-of select="$Attach_name4" />" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="<xsl:value-of select="$Attach_description4" />" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachicon">
<xsl:with-param name="Attach_name" select="$Attach_name4"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer-nxml"/>
</xsl:with-param>
</xsl:call-template>

</xsl:if>






<xsl:if test="$Attach_name4 = ''">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="attach_name"  value="" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="attach_description" value="" /></xsl:with-param>
</xsl:call-template>

</xsl:if>

</xsl:if>



<!-- For HPCN only  -->

<xsl:choose>
<xsl:when test="$PartStyle= 'hpcn' ">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">

<xsl:with-param name="Label"><!-- HPCN ONLY  <xsl:value-of select="$BaseSetUp//vmp:part/@name"/> --></xsl:with-param>
<xsl:with-param name="Item">
<xsl:choose>
<xsl:when test="$SelectMagazine ='null' or $SelectMagazine =''">
<xsl:for-each select="$BaseSetUp//vmp:magazines/vmp:magazine/@name">
<xsl:choose>
<xsl:when test=" . = $Part_name0 " >
&lt;input checked="true" type="radio" name="part_name" value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/input>&lt;br />
</xsl:when>
<xsl:otherwise>
&lt;input  type="radio" name="part_name"  value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/input>&lt;br />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
&lt;input  type="hidden" name="part_name"  value="<xsl:value-of select="$SelectMagazine" />"  /><xsl:copy-of select="$Spacer-nxml" />
</xsl:otherwise>
</xsl:choose>

</xsl:with-param>
</xsl:call-template>

<!-- Assume no issue -->

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@issue"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;input type="hidden"  name="part_issue" value="" /><xsl:copy-of select="$Spacer-nxml" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@rank"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;input type="hidden"  name="part_rank" value="" /><xsl:copy-of select="$Spacer-nxml" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
&lt;option selected="yes" value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<!-- Parts for HPCN only -->

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">&lt;font color="#990000" size="-1"> - <xsl:value-of select="$BaseSetUp//vmp:part/@name"/> - &lt;/font>
</xsl:with-param>
</xsl:call-template>


<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]//vmp:section/@name" >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="."/>
<xsl:with-param name="Item">
&lt;input type="hidden" name="part_section"  value="<xsl:value-of select="." />" />
<xsl:call-template name="subsections">
<xsl:with-param name="positie" select="number(position()-'1')"/>
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>

</xsl:for-each>

</xsl:when>
<xsl:when test="$PartStyle= 'ihe' ">

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>



<!-- Parts for IHE only -->

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status" style="width: <xsl:value-of select="$section-width" />;">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
&lt;option selected="yes" value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="." />" ><xsl:value-of select="."/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]//vmp:section" >
&lt;input  type="hidden" name="part_name"  value="<xsl:value-of select="$SelectMagazine" />"  />
&lt;input  type="hidden" name="part_section"  value="<xsl:value-of select="@name" />"  />
&lt;input type="hidden"  name="part_issue" value="" />
&lt;input type="hidden"  name="part_rank" value="" />
&lt;input type="hidden"  name="part_status" value="" />



<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="@name"/>
<xsl:with-param name="Item">
&lt;select name="part_subsection" style="width: <xsl:value-of select="$section-width" />;" >
<xsl:for-each select="vmp:subsection">
<xsl:choose>
<xsl:when test="@name = $Part_subsection0"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection1"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection2"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection3"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection4"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection5"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection6"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection7"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection8"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:when test="@name = $Part_subsection9"> 
&lt;option value="<xsl:value-of select="@name" />" selected="selected"><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

</xsl:for-each>

</xsl:when>


<!-- for non hpcn style -->


<xsl:otherwise>
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


<xsl:if test="$Part_name0 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name0 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name0]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section0 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name0]/vmp:section[@name = $Part_section0]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name0]/vmp:section[@name = $Part_section0]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection0" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue0" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank0" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name0]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status0 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->


<xsl:if test="$Part_name1 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name1 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name1]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section1 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name1]/vmp:section[@name = $Part_section1]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name1]/vmp:section[@name = $Part_section1]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection1" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue1" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank1" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name1]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status1 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name2 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name2 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name2]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section2 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name2]/vmp:section[@name = $Part_section2]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name2]/vmp:section[@name = $Part_section2]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection2" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue2" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank2" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name2]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status2 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name3 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name3 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name3]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section3 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name3]/vmp:section[@name = $Part_section3]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name3]/vmp:section[@name = $Part_section3]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection3" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue3" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank3" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name3]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status3 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name4 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name4 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name4]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section4 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name4]/vmp:section[@name = $Part_section4]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name4]/vmp:section[@name = $Part_section4]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection4" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue4" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank4" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name4]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status4 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name5 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name5 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name5]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section5 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name5]/vmp:section[@name = $Part_section5]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name5]/vmp:section[@name = $Part_section5]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection5" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue5" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank5" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name5]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status5 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name6 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name6 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name6]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section6 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name6]/vmp:section[@name = $Part_section6]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name6]/vmp:section[@name = $Part_section6]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection6" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue6" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank6" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name6]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status6 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name7 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name7 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name7]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section7 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name7]/vmp:section[@name = $Part_section7]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name7]/vmp:section[@name = $Part_section7]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection7" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue7" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank7" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name7]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status7 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name8 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name8 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name8]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section8 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name8]/vmp:section[@name = $Part_section8]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name8]/vmp:section[@name = $Part_section8]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection8" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue8" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank8" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name8]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status8 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->

<xsl:if test="$Part_name9 != ''">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $Part_name9 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;option value="-" >-&lt;/option>
&lt;/select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
&lt;select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name9]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $Part_section9 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name9]/vmp:section[@name = $Part_section9]//vmp:subsection">
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:part/@subsection"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name9]/vmp:section[@name = $Part_section9]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $Part_subsection9" >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_section" value="" />
&lt;input type="hidden"  name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_issue" value="<xsl:value-of select="$Part_issue9" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="25" name="part_rank" value="<xsl:value-of select="$Part_rank9" />" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
&lt;select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $Part_name9]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $Part_status9 " >
&lt;option selected="true" value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>



</xsl:if>


<!-- Next Part -->



<!-- Last empty Part  -->
<xsl:if test="$Part_name9 = ''">


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>



<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

&lt;select name="part_name">
&lt;option selected="true" value="-" >-&lt;/option>
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
&lt;option value="<xsl:value-of select="@name" />" ><xsl:value-of select="@name"/>&lt;/option>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>





&lt;input type="hidden" name="part_section" value="" />

&lt;input type="hidden" name="part_subsection" value="" />


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="part_issue" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">&lt;input type="text"  size="75" name="part_rank" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
&lt;input type="hidden" name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>


&lt;input type="hidden" name="part_status" value="" />




</xsl:if>

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



<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">&lt;p style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item-heading/@title-style" />">Content&lt;/p></xsl:with-param>
</xsl:call-template>


<!-- Title Text -->

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:title"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="title" value="<xsl:value-of select="$Title" />" /></xsl:with-param>
</xsl:call-template>



<!-- Subtitle Text -->

<xsl:if test="not($BaseSetUp//vmp:subtitle/@name ='')" >
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:subtitle/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="subtitle" value="<xsl:value-of select="$Subtitle"  />" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Place name and date Text -->

<xsl:if test="not($BaseSetUp//vmp:place/@name ='')" >
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:place/@name"/>
<xsl:with-param name="Item">&lt;input type="text" size="<xsl:value-of select="$cols" />" name="place_name" value="<xsl:value-of select="$Place_name" /> " /></xsl:with-param>
</xsl:call-template>

<xsl:if test="not($BaseSetUp//vmp:place/@date ='')" >
<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:place/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Place_date" />
<xsl:with-param name="date-name" select="'place_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>

<!-- Lead Text -->

<xsl:if test="not($BaseSetUp//vmp:lead ='')" >

<xsl:if test="$BaseSetUp//vmp:lead/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu-nxml" >
<xsl:with-param name="item" select="'lead'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>

<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:lead" />
<xsl:with-param name="Item">
&lt;textarea type="text"  cols="<xsl:value-of select="$cols" />" rows="5"  wrap="virtual" name="leadtext"><xsl:value-of select="$Lead"/>&lt;/textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Lead Contents Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-con ='')" >
<xsl:if test="$BaseSetUp//vmp:lead-con/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu-nxml" >
<xsl:with-param name="item" select="'leadcon'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:lead-con" />
<xsl:with-param name="Item">
&lt;textarea type="text"  cols="<xsl:value-of select="$cols" />" rows="5"  wrap="virtual" name="leadcontext"><xsl:value-of select="$Leadcon"/>&lt;/textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Lead Short Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-short ='')" >
<xsl:if test="$BaseSetUp//vmp:lead-short/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu-nxml" >
<xsl:with-param name="item" select="'leadshort'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:lead-short"/>
<xsl:with-param name="Item">
&lt;textarea type="text"  cols="<xsl:value-of select="$cols" />" rows="5"  wrap="virtual" name="leadshorttext"><xsl:value-of select="$Leadshort"/>&lt;/textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Main Text -->

<xsl:if test="not($BaseSetUp//vmp:main ='')" >
<xsl:if test="$BaseSetUp//vmp:main/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu-nxml" >
<xsl:with-param name="item" select="'main'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:main"/>
<xsl:with-param name="Item">
&lt;textarea type="text"  cols="<xsl:value-of select="$cols" />" rows="20"  wrap="virtual" name="maintext"><xsl:value-of select="$Main"/>&lt;/textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Ref Text -->

<xsl:if test="not($BaseSetUp//vmp:ref ='')" >
<xsl:if test="$BaseSetUp//vmp:ref/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu-nxml" >
<xsl:with-param name="item" select="'ref'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry-nxml">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:ref"/>
<xsl:with-param name="Item">
&lt;textarea type="text"  cols="<xsl:value-of select="$cols" />" rows="5"  wrap="virtual" name="reftext"><xsl:value-of select="$Ref"/>&lt;/textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>

<!--  Include voor ihe  
&lt;/table>
&lt;/td>&lt;td valign="top" >
&lt;table >
-->

<!-- factsheet -->

<xsl:if test="not($BaseSetUp//vmp:factsheet/@name ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item">&lt;p style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item-heading/@title-style" />"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@name"/>&lt;/p></xsl:with-param>
</xsl:call-template>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@country1 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@country1"/></xsl:with-param>
<xsl:with-param name="Item">
&lt;select name="factsheet_country1">
<xsl:for-each select="document('../set-up/countries.xml')/vmp:countries/vmp:country">
<xsl:choose>
<xsl:when test="$Factsheet_country1 = @code">
&lt;option value="<xsl:value-of select="@code" />" selected="selected"><xsl:value-of select="vmp:name[@xml:lang = 'en']" />&lt;/option>
</xsl:when>
<xsl:otherwise>
&lt;option value="<xsl:value-of select="@code" />" ><xsl:value-of select="vmp:name[@xml:lang = 'en']" />&lt;/option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
&lt;/select>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item1 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item1"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item1" ><xsl:value-of select="$Factsheet_item1" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item2 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item2"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item2" ><xsl:value-of select="$Factsheet_item2" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item3 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item3"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item3" > <xsl:value-of select="$Factsheet_item3" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item4 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item4"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item4" ><xsl:value-of select="$Factsheet_item4" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item5 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item5"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item5" ><xsl:value-of select="$Factsheet_item5" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item6 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item6"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item6" ><xsl:value-of select="$Factsheet_item6" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item7 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item7"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item7" ><xsl:value-of select="$Factsheet_item7" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item8 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item8"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item8" ><xsl:value-of select="$Factsheet_item8" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item9 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item9"/></xsl:with-param>
<xsl:with-param name="Item">&lt;textarea type="text" wrap="virtual" rows="5" cols="<xsl:value-of select="$cols-fs" />" name="factsheet_item9" ><xsl:value-of select="$Factsheet_item9" />&lt;/textarea></xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@date1 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date1"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Factsheet_date1" />
<xsl:with-param name="date-name" select="'factsheet_date1'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@date2 ='')" >
<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date2"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu-nxml">
<xsl:with-param name="date-value" select="$Factsheet_date2" />
<xsl:with-param name="date-name" select="'factsheet_date2'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>



</xsl:if>

<!--  Include voor ihe  

&lt;/table>
&lt;/td>
&lt;/tr>
&lt;/table>
&lt;/td>
&lt;/tr>
-->



<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item">

&lt;table>
&lt;tr>
&lt;td align="right">

<xsl:if test="$BaseSetUp//vmp:action/@restore !=''" >
&lt;input type="submit" name="action" value="restore" 
          style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@button-style" />"/>&lt;br /> 
</xsl:if>

<xsl:if test="$BaseSetUp//vmp:action/@save !=''" >
&lt;input type="submit" name="action" value="save"
          style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@button-style" />" />&lt;br /> 
</xsl:if>

<xsl:if test="$BaseSetUp//vmp:action/@new !=''" >
&lt;input type="submit" name="action" value="new"
    style="<xsl:value-of select="$CMTSetUp/vmp:layout/vmp:item/@button-style" />"/>&lt;br />
</xsl:if>

&lt;input type="hidden"  name="authorname" value="<xsl:value-of select="$SelectAuthor" />" />
&lt;input type="hidden"  name="groupname" value="<xsl:value-of select="$SelectGroup" />" />
&lt;input type="hidden"  name="selectmagazine" value="<xsl:value-of select="$SelectMagazine" />" />&lt;br />
&lt;/td>
&lt;/tr>
&lt;/table>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry-nxml">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer-nxml" /></xsl:with-param>
</xsl:call-template>


&lt;/form>



</xsl:with-param>
</xsl:call-template>


</control>
</nxml>

</xt:document>

</xsl:when>

<xsl:otherwise>

<!--  ============== For action is Restore  and New ============================= -->



<xt:document href="{concat('temp/',translate(substring($SelectGroup,1,$PrefixLength),'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'),'-',$ArticleId,'.txt')}" method="html">

<xsl:call-template name="format-basis">
<xsl:with-param name="Title" ><xsl:value-of select="$SelectMagazine" /><xsl:text> </xsl:text> <xsl:value-of select="$BaseSetUp//vmp:custom_name"/></xsl:with-param>
<xsl:with-param name="Contents">

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item">
<table border="0">
<tr>
<td>

<form name="help" action="{$BaseUrl}set-up/help.html#editscreen" target="help">
<input name="submit" type="submit" value="help" 
                                   style="{$CMTSetUp/vmp:layout/vmp:item/@button-style}"/>
</form>
</td>
<td>

<form name="back" action="{$BaseUrl}administration/authors/{$SelectGroup}/index.html">
<input name="submit" type="submit" value="back to management tool" 
                                   style="{$CMTSetUp/vmp:layout/vmp:item/@button-style} width: 200px;"/>
</form>
</td>
</tr>
</table>
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<!--  The Errormessage  -->
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label"><p style="{$CMTSetUp/vmp:layout/vmp:item/@label-style}" >Messages</p></xsl:with-param>
<xsl:with-param name="Item"><font color="#990000"><xsl:value-of select="$Messages"/></font></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><p style="{$CMTSetUp/vmp:layout/vmp:item-heading/@title-style}">Meta-data</p></xsl:with-param>
</xsl:call-template>



<!--Start van het invulformulier -->



<form action="{$EditorServlet}"  method="post">

<!-- Article-ID -->
<xsl:choose>
<xsl:when test="$BaseSetUp//vmp:article/@fixed-id = 'yes'">


<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><input type="hidden"  name="articleid" value="{$ArticleId}" /></xsl:with-param>
</xsl:call-template>
</xsl:when>

<xsl:otherwise>
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label"><p style="{$CMTSetUp/vmp:layout/vmp:item/@label-style}"><xsl:value-of  select="$BaseSetUp//vmp:article/@id"/></p></xsl:with-param> 
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="articleid" value="{$ArticleId}" /></xsl:with-param>
</xsl:call-template>
</xsl:otherwise>

</xsl:choose>

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:choose>

<!--  ====================  For action is New ============================= -->

<xsl:when test="$SelectAction = 'new'">

<!-- Include voor ihe  
<tr>
<td colspan="7" >
<table cellpadding="0" cellspacing="0">
<tr>
<td valign="top" >
<table  cellpadding="0" cellspacing="0">
-->


<vmp:editor-middle>
<!-- Author -->


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="author_name" value="" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@date"/>

<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'author_date'" />
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:if test="not($BaseSetUp//vmp:editor/@name ='')" >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="editor_name"  value="" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item"><input type="text"  size="75" name="editor_comment" value="" /></xsl:with-param>
</xsl:call-template>


</xsl:if>



<!-- Attachments texts  -->

<xsl:if test="not($BaseSetUp//vmp:attach/@name ='')" >


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label"></xsl:with-param>
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>



<xsl:call-template name="s-entry">
<xsl:with-param name="Label"><p style="{$CMTSetUp/vmp:layout/vmp:item/@label-style}">
<xsl:value-of select="$CMTSetUp/vmp:content/vmp:repository/vmp:item[@type = 'search']/vmp:label"/>
</p></xsl:with-param>
<xsl:with-param name="Item">

<table  cellspacing="1" cellpadding="0" >
<tr> 
<td bgcolor="{$BaseColour}" valign="top" align="rigth" >
<a href="javascript:popup('{$BaseUrl}search-repository.html')">
<font color="{$SupportColour}" size="-1">Search</font>
</a>
</td>
<td bgcolor="{$BaseColour}" align="rigth" >
<a href="javascript:popup('{$BaseUrl}upload.html')">
<font color="{$SupportColour}" size="-1">Upload</font>
</a>
</td>
</tr>
</table>

</xsl:with-param>
</xsl:call-template>



<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="attach_name"  value="" /> 
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item"><input type="text"  size="75" name="attach_description" value="" /></xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label"><xsl:copy-of select="$Spacer" /><br /></xsl:with-param>
<xsl:with-param name="Item"><xsl:copy-of  select="$Spacer" /><br /></xsl:with-param>
</xsl:call-template>

<xsl:choose>
<xsl:when test="$PartStyle= 'hpcn' ">

<!--  nog aanpassen voor algemeen geval  -->

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">

<xsl:with-param name="Label"> <!-- xsl:value-of select="$BaseSetUp//vmp:part/@name"/> HPCN ONLY  --></xsl:with-param>

<xsl:with-param name="Item">
<xsl:choose>
<xsl:when test="$SelectMagazine ='null' or $SelectMagazine =''">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine/@name">
<xsl:choose>
<xsl:when test=" . = $Part_name0 " >
<input checked="true" type="radio" name="part_name" value="{.}" ><xsl:value-of select="."/></input><br />
</xsl:when>
<xsl:otherwise>
<input  type="radio" name="part_name"  value="{.}" ><xsl:value-of select="."/></input><br />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<input  type="hidden" name="part_name"  value="{$SelectMagazine}"  /><xsl:copy-of select="$Spacer" />
</xsl:otherwise>
</xsl:choose>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">
<input type="hidden"  name="part_issue" value="" /><xsl:copy-of select="$Spacer" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">
<input type="hidden"  name="part_rank" value="" /><xsl:copy-of select="$Spacer" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
<option selected="yes" value="{.}" ><xsl:value-of select="."/></option>
</xsl:when>
<xsl:otherwise>
<option value="{.}" ><xsl:value-of select="."/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>

<!-- HPCN only  -->


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><font color="#990000" size="-1"> - <xsl:value-of select="$BaseSetUp//vmp:part/@name"/> - </font>
</xsl:with-param>
</xsl:call-template>

<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]//vmp:section/@name" >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="."/>
<xsl:with-param name="Item">
<input type="hidden" name="part_section"  value="{.}" />

<xsl:call-template name="subsectionsxml">
<xsl:with-param name="positie" select="number(position()-'1')"/>
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>



</xsl:for-each>

</xsl:when>

<xsl:when test="$PartStyle= 'ihe' ">

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<select name="part_status"  style="width: {$section-width};">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
<option selected="yes" value="{.}" ><xsl:value-of select="."/></option>
</xsl:when>
<xsl:otherwise>
<option value="{.}" ><xsl:value-of select="."/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>

<!--  nog aanpassen voor algemeen geval  -->

<!-- ========================= -->
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $SelectMagazine]/vmp:section">
<input  type="hidden" name="part_name"  value="{$SelectMagazine}"  />
<input  type="hidden" name="part_section"  value="{@name}"  />
<input type="hidden"  name="part_issue" value="" />
<input type="hidden"  name="part_rank" value="" />
<input type="hidden"  name="part_status" value="" />

<xsl:call-template name="s-entry">
<xsl:with-param name="Label"><xsl:value-of select="@name" /></xsl:with-param>
<xsl:with-param name="Item">
<select name="part_subsection"  style="width: {$section-width};">
<xsl:for-each select="vmp:subsection">
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:for-each>
<!-- <option selected="true" value="-" >-</option> -->
</select>
</xsl:with-param>
</xsl:call-template>

</xsl:for-each>
<!-- ========================= -->






</xsl:when>

<xsl:otherwise>

<!-- For non-HPCN styles -->

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

<select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test="@name= $SelectMagazine" >
<option value="{@name}" selected="selected" ><xsl:value-of select="@name"/></option>

</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<option value="-" >-</option>
</select>
</xsl:with-param>
</xsl:call-template>


<input type="hidden"  name="part_section" value="" />
<input type="hidden"  name="part_subsection" value="" />

<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item"><input type="text"  size="25" name="part_issue" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden"  name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@rank"/> 
<xsl:with-param name="Item"><input type="text"  size="25" name="part_rank" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden"  name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@status)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $SelectMagazine]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = 'publish' or  @name = 'online' " >
<option selected="selected" value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden"  name="part_status" value="publish" />
</xsl:otherwise>
</xsl:choose>


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


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><p style="{$CMTSetUp/vmp:layout/vmp:item-heading/@title-style}">Content</p></xsl:with-param>
</xsl:call-template>



<!-- Title Text -->

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:title"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="title" value="" /></xsl:with-param>
</xsl:call-template>



<!-- Subtitle Text -->

<xsl:if test="not($BaseSetUp//vmp:subtitle/@name ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:subtitle/@name"/> 
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="subtitle" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Place name and date Text -->

<xsl:if test="not($BaseSetUp//vmp:place/@name ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:place/@name"/> 
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="place_name" value="" /></xsl:with-param>
</xsl:call-template>

<xsl:if test="not($BaseSetUp//vmp:place/@date ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:place/@date"/> 
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'place_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>
<!-- Lead Text -->

<xsl:if test="not($BaseSetUp//vmp:lead ='')" >

<xsl:if test="$BaseSetUp//vmp:lead/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'lead'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadtext"></textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Lead Contents Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-con ='')" >


<xsl:if test="$BaseSetUp//vmp:lead-con/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'leadcon'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead-con"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadcontext"></textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Lead Short Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-short ='')" >

<xsl:if test="$BaseSetUp//vmp:lead-short/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'leadshort'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>



<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead-short"/> 
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadshorttext"></textarea>          
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Main Text -->

<xsl:if test="not($BaseSetUp//vmp:main ='')" >

<xsl:if test="$BaseSetUp//vmp:main/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'main'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:main"/> 
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="20"  wrap="virtual" name="maintext"></textarea>         
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Ref Text -->

<xsl:if test="not($BaseSetUp//vmp:ref ='')" >

<xsl:if test="$BaseSetUp//vmp:ref/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'ref'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:ref"/> 
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="reftext"></textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>

</vmp:editor-middle>
<!--  Include voor ihe  
</table>
</td><td valign="top" >
<table  cellpadding="0" cellspacing="0">
-->
<!--  Fact Sheet  -->
<vmp:editor-factsheet>



<xsl:if test="not($BaseSetUp//vmp:factsheet/@name ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label" />
<xsl:with-param name="Item"><p style="{$CMTSetUp/vmp:layout/vmp:item-heading/@title-style}" ><xsl:value-of select="$BaseSetUp//vmp:factsheet/@name"/></p></xsl:with-param>
</xsl:call-template>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@country1 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@country1"/></xsl:with-param>
<xsl:with-param name="Item">
<select name="factsheet_country1">
<xsl:for-each select="document('../set-up/countries.xml')/vmp:countries/vmp:country">
<option value="{@code}"><xsl:value-of select="vmp:name[@xml:lang = 'en']" /></option>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item1 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@item1"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item1"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item2 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item2"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item2" /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item3 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item3"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item3"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item4 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item4"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item4"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item5 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item5"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item5" /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item6 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item6"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item6"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item7 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item7"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item7"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item8 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />

<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item8"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item8" /></xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item9 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item9"/></xsl:with-param>
<xsl:with-param name="Item"><textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item9"  /></xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@date1 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date1"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'factsheet_date1'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@date2 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date2"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'factsheet_date2'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


</xsl:if>

</vmp:editor-factsheet>

<!--  Include voor ihe  
</table>
</td>
</tr>
</table>
</td>
</tr>
-->
</xsl:when>
<xsl:otherwise>

<!--  Include voor ihe  

<tr>
<td colspan="7" >
<table  cellpadding="0" cellspacing="0">
<tr>
<td valign="top" >
<table  cellpadding="0" cellspacing="0">

-->
<!--  ===================  For action is Restore ============================= -->



<!-- Author -->
<vmp:editor-middle>
<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@name"/> 
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="author_name" value="{$BaseArticle//vmp:author/@name}" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:author/@date"/> 
<xsl:with-param name="Item">

<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$BaseArticle//vmp:author/@date" />
<xsl:with-param name="date-name" select="'author_date'" />
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>



<!-- Editors -->

<xsl:if test="not($BaseSetUp//vmp:editor/@name ='')" >

<xsl:for-each select="$BaseArticle//vmp:editor">

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@name"/> 
<xsl:with-param name="Item"><input type="text"  size="{$cols}" name="editor_name" value="{@name}" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="@date" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item"><input type="text"  size="{$cols}" name="editor_comment" value="{@comment}" /></xsl:with-param>
</xsl:call-template>



</xsl:for-each>

<xsl:if test="position() = last() and position() &lt; 3  and not(normalize-space(preceding-sibling::vmp:editor/@name) = '') ">

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="editor_name"  value="" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:editor/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$CurrentDate" />
<xsl:with-param name="date-name" select="'editor_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:editor/@comment"/>
<xsl:with-param name="Item"><input type="text"  size="{$cols}" name="editor_comment" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

</xsl:if>



<!-- Attachments texts  -->

<xsl:if test="not($BaseSetUp//vmp:attach/@name ='')" >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label"><p style="{$CMTSetUp/vmp:layout/vmp:item/@label-style}">
<xsl:value-of select="$CMTSetUp/vmp:content/vmp:repository/vmp:item[@type = 'search']/vmp:label"/>
</p></xsl:with-param>
<xsl:with-param name="Item">

<table  cellspacing="1" cellpadding="0" >
<tr> 
<td bgcolor="{$BaseColour}" valign="top" align="rigth" >
<a href="javascript:popup('{$BaseUrl}search-repository.html')">
<font color="{$SupportColour}" size="-1">Search</font>
</a>
</td>
<td bgcolor="{$BaseColour}" align="rigth" >
<a href="javascript:popup('{$BaseUrl}upload.html')">
<font color="{$SupportColour}" size="-1">Upload</font>
</a>
</td>
</tr>
</table>

</xsl:with-param>
</xsl:call-template>

<xsl:for-each select="$BaseArticle//vmp:attach[@name != '']">

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="attach_name"  value="{@name}" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item"><input type="text"  size="{$cols}" name="attach_description" value="{@description}" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@type"/>
<xsl:with-param name="Item">
<xsl:call-template name="attachiconxml">
<xsl:with-param name="Attach_name" select="@name"/>
</xsl:call-template>
<xsl:copy-of select="$Spacer"/>
</xsl:with-param>
</xsl:call-template>

</xsl:for-each>

<xsl:if test="position() = last() and position() &lt; 6  and not(preceding-sibling::vmp:attach/@name = '') ">

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:attach/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="attach_name"  value="" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:attach/@description"/>
<xsl:with-param name="Item"><input type="text"  size="{$cols}" name="attach_description" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

</xsl:if>



<!--
<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"></xsl:with-param>
</xsl:call-template>

-->

<!-- part/magazine -->


<xsl:choose>
<xsl:when test="$PartStyle= 'hpcn' ">
<!--  nog aanpassen voor algemeen geval  -->

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">

<xsl:with-param name="Label"><!-- <xsl:value-of select="$BaseSetUp//vmp:part/@name"/> HPCN ONLY  --></xsl:with-param>
<xsl:with-param name="Item">
<xsl:choose>
<xsl:when test="$SelectMagazine ='null' or $SelectMagazine =''">
<xsl:for-each select="$BaseSetUp//vmp:magazines/vmp:magazine/@name">
<xsl:choose>
<xsl:when test=" . = $Part_name0 " >
<input checked="true" type="radio" name="part_name" value="{.}" ><xsl:value-of select="."/></input><br />
</xsl:when>
<xsl:otherwise>
<input  type="radio" name="part_name"  value="{.}" ><xsl:value-of select="."/></input><br />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<input  type="hidden" name="part_name"  value="{$SelectMagazine}"  /><xsl:copy-of select="$Spacer" />
</xsl:otherwise>
</xsl:choose>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item">
<input type="hidden"  name="part_issue" value="" /><xsl:copy-of select="$Spacer" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item">
<input type="hidden"  name="part_rank" value="" /><xsl:copy-of select="$Spacer" />
</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
<option selected="yes" value="{.}" ><xsl:value-of select="."/></option>
</xsl:when>
<xsl:otherwise>
<option value="{.}" ><xsl:value-of select="."/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>

<!-- HPCN only  -->


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><font color="#990000" size="-1"> - <xsl:value-of select="$BaseSetUp//vmp:part/@name"/> - </font>
</xsl:with-param>
</xsl:call-template>

<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]//vmp:section/@name" >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="."/>
<xsl:with-param name="Item">
<input type="hidden" name="part_section"  value="{.}" />
<xsl:call-template name="subsectionsxml">
<xsl:with-param name="positie" select="number(position()-'1')"/>
</xsl:call-template>

</xsl:with-param>
</xsl:call-template>

</xsl:for-each>

</xsl:when>

<xsl:when test="$PartStyle= 'ihe' ">
<!--  nog aanpassen voor algemeen geval  -->


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<select name="part_status"  style="width: {$section-width};">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[1]//vmp:status/@name">
<xsl:choose>
<xsl:when test=" . = $Part_status0 " >
<option selected="yes" value="{.}" ><xsl:value-of select="."/></option>
</xsl:when>
<xsl:otherwise>
<option value="{.}" ><xsl:value-of select="."/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>

<!-- IHE only  -->


<!--
<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:value-of select="$BaseSetUp//vmp:part/@name"/>
</xsl:with-param>
</xsl:call-template>
-->
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazine[@name = $SelectMagazine]/vmp:section" >
<xsl:variable name="CurrentSection"><xsl:value-of select="@name" /></xsl:variable>

<input type="hidden" name="part_name"  value="{$SelectMagazine}"  />
<input type="hidden" name="part_section"  value="{$CurrentSection}"  />
<input type="hidden"  name="part_issue" value="" />
<input type="hidden"  name="part_rank" value="" />
<input type="hidden"  name="part_status" value="" />

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" select="$CurrentSection"/>
<xsl:with-param name="Item">
<select name="part_subsection"  style="width: {$section-width};">

<xsl:for-each select="vmp:subsection">
<xsl:choose>
<xsl:when  test="$BaseArticle//vmp:part[@name = $SelectMagazine and @section = $CurrentSection]/@subsection = @name">
<option value="{@name}" selected="selected"><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

</select>

</xsl:with-param>
</xsl:call-template>

</xsl:for-each>


</xsl:when>

<!-- Parts for non-HPCN publications  -->

<xsl:otherwise>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>



<xsl:for-each select="$BaseArticle//vmp:part">
<xsl:variable name="CurrentPart"><xsl:value-of select="@name" /></xsl:variable>
<xsl:variable name="CurrentSection"><xsl:value-of select="@section" /></xsl:variable>
<xsl:variable name="CurrentSubSection"><xsl:value-of select="@subsection" /></xsl:variable>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="entry">
<xsl:with-param name="Label" select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

<select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<xsl:choose>
<xsl:when test=" @name = $CurrentPart " >
<option selected="true" value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<option value="-" >-</option>
</select>
</xsl:with-param>
</xsl:call-template>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@section)) = '0')">

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@section"/>
<xsl:with-param name="Item">
<select name="part_section">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $CurrentPart]//vmp:section">
<xsl:choose>
<xsl:when test=" @name = $CurrentSection " >
<option selected="true" value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_section" value="" />
</xsl:otherwise>
</xsl:choose>

<xsl:choose>
<xsl:when test="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $CurrentPart]/vmp:section[@name = $CurrentSection]//vmp:subsection">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@subsection"/>
<xsl:with-param name="Item">
<select name="part_subsection">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $CurrentPart]/vmp:section[@name = $CurrentSection]//vmp:subsection">
<xsl:choose>
<xsl:when test=" @name = $CurrentSubSection " >
<option selected="true" value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_subsection" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item"><input type="text"  size="25" name="part_issue" value="{@issue}" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item"><input type="text"  size="25" name="part_rank" value="{@rank}" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>




<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@status"/>
<xsl:with-param name="Item">
<xsl:variable name="CurrentStatus"><xsl:value-of select="@status" /></xsl:variable>
<select name="part_status">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine[@name = $CurrentPart]//vmp:status">
<xsl:choose>
<xsl:when test=" @name = $CurrentStatus " >
<option selected="true" value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>


</xsl:for-each>

<xsl:if test="position() = last() and position() &lt; 9  and not(preceding-sibling::vmp:part/@name = '-') ">

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@name"/>
<xsl:with-param name="Item">

<select name="part_name">
<xsl:for-each select="document('../set-up/editor-layout-settings.xml')//vmp:magazines/vmp:magazine">
<option value="{@name}" ><xsl:value-of select="@name"/></option>
</xsl:for-each>
<option selected="true" value="-" >-</option>
</select>
</xsl:with-param>
</xsl:call-template>


<input type="hidden"  name="part_section" value="" />
<input type="hidden"  name="part_subsection" value="" />


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@issue)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@issue"/>
<xsl:with-param name="Item"><input type="text"  size="25" name="part_issue" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_issue" value="" />
</xsl:otherwise>
</xsl:choose>


<xsl:choose>
<xsl:when test="not(string-length(normalize-space($BaseSetUp//vmp:part/@rank)) = '0')">
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:part/@rank"/>
<xsl:with-param name="Item"><input type="text"  size="25" name="part_rank" value="" /></xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<input type="hidden" name="part_rank" value="" />
</xsl:otherwise>
</xsl:choose>

<input type="hidden"  name="part_status" value="" />

</xsl:if>

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



<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><p style="{$CMTSetUp/vmp:layout/vmp:item-heading/@title-style}">Content</p></xsl:with-param>
</xsl:call-template>

<!-- Title Text -->

<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:title"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="title" value="{$BaseArticle//vmp:title}" /></xsl:with-param>
</xsl:call-template>



<!-- Subtitle Text -->

<xsl:if test="not($BaseSetUp//vmp:subtitle/@name ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:subtitle/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="subtitle" value="{$BaseArticle//vmp:subtitle/@name}" /></xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Place name and date Text -->

<xsl:if test="not($BaseSetUp//vmp:place/@name ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:place/@name"/>
<xsl:with-param name="Item"><input type="text" size="{$cols}" name="place_name" value="{$BaseArticle//vmp:place/@name}" /></xsl:with-param>
</xsl:call-template>

<xsl:if test="not($BaseSetUp//vmp:place/@date ='')" >
<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:place/@date"/>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$BaseArticle//vmp:place/@date" />
<xsl:with-param name="date-name" select="'place_date'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>

<!-- Lead Text -->

<xsl:if test="not($BaseSetUp//vmp:lead ='')" >

<xsl:if test="$BaseSetUp//vmp:lead/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'lead'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadtext">
<xsl:copy-of select="$BaseArticle//vmp:lead/text() | $BaseArticle//vmp:lead/*" /> 
</textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Lead Contents Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-con ='')" >

<xsl:if test="$BaseSetUp//vmp:lead-con/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'leadcon'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead-con"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadcontext">
<xsl:copy-of select="$BaseArticle//vmp:lead-con/text() | $BaseArticle//vmp:lead-con/*" /> 
</textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Lead Short Text -->

<xsl:if test="not($BaseSetUp//vmp:lead-short ='')" >

<xsl:if test="$BaseSetUp//vmp:lead-short/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'leadshort'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:lead-short"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="leadshorttext">
<xsl:copy-of select="$BaseArticle//vmp:lead-short/text() | $BaseArticle//vmp:lead-short/*" /> 
</textarea>          
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<!-- Main Text -->

<xsl:if test="not($BaseSetUp//vmp:main ='')" >

<xsl:if test="$BaseSetUp//vmp:main/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'main'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:main"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="20"  wrap="virtual" name="maintext"> 
<xsl:copy-of select="$BaseArticle//vmp:main/text() | $BaseArticle//vmp:main/*" /> 
</textarea>         
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<!-- Ref Text -->

<xsl:if test="not($BaseSetUp//vmp:ref ='')" >

<xsl:if test="$BaseSetUp//vmp:ref/@assistent-menu ='yes' " >

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<xsl:call-template name="assistent-menu" >
<xsl:with-param name="item" select="'ref'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>

</xsl:if>


<xsl:call-template name="entry">
<xsl:with-param name="Label"  select="$BaseSetUp//vmp:ref"/>
<xsl:with-param name="Item">
<textarea type="text"  cols="{$cols}" rows="5"  wrap="virtual" name="reftext">
<xsl:copy-of select="$BaseArticle//vmp:ref/text() | $BaseArticle//vmp:ref/*" /> 
</textarea> 
</xsl:with-param>
</xsl:call-template>
</xsl:if>

</vmp:editor-middle>

 <!-- Fact Sheet -->

<!--  Include voor ihe  
</table>
</td><td valign="top" align="right" >
<table >
-->
<vmp:editor-factsheet>



<xsl:if test="not($BaseSetUp//vmp:factsheet/@name ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><p style="{$CMTSetUp/vmp:layout/vmp:item-heading/@title-style}" ><xsl:value-of select="$BaseSetUp//vmp:factsheet/@name"/></p></xsl:with-param>
</xsl:call-template>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@country1 ='')" >
<xsl:call-template name="s-entry">1
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"> <xsl:value-of select="$BaseSetUp//vmp:factsheet/@country1"/></xsl:with-param>
<xsl:with-param name="Item">
<select name="factsheet_country1">
<xsl:for-each select="document('../set-up/countries.xml')/vmp:countries/vmp:country">
<xsl:choose>
<xsl:when test="$BaseArticle//vmp:factsheet/@country1 = @code">
<option value="{@code}" selected="selected"><xsl:value-of select="vmp:name[@xml:lang = 'en']" /></option>
</xsl:when>
<xsl:otherwise>
<option value="{@code}"><xsl:value-of select="vmp:name[@xml:lang = 'en']" /></option>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</select>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@item1 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item1"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item1" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item1" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item2 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item2"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item2" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item2" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item3 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item3"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item3" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item3" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item4 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item4"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item4" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item4" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item5 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item5"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item5" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item5" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item6 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item6"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item6" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item6" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item7 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item7"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item7" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item7" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item8 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item8"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item8" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item8" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@item9 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@item9"/></xsl:with-param>
<xsl:with-param name="Item">
<textarea type="text" wrap="virtual" rows="5" cols="{$cols-fs}" name="factsheet_item9" >
<xsl:value-of select="$BaseArticle//vmp:factsheet/@item9" />
</textarea>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


<xsl:if test="not($BaseSetUp//vmp:factsheet/@date1 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date1"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$BaseArticle//vmp:factsheet/@date1" />
<xsl:with-param name="date-name" select="'factsheet_date1'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>

<xsl:if test="not($BaseSetUp//vmp:factsheet/@date2 ='')" >
<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'factsheet'" />
<xsl:with-param name="Label"><xsl:value-of select="$BaseSetUp//vmp:factsheet/@date2"/></xsl:with-param>
<xsl:with-param name="Item">
<xsl:call-template name="format-date-menu">
<xsl:with-param name="date-value" select="$BaseArticle//vmp:factsheet/@date2" />
<xsl:with-param name="date-name" select="'factsheet_date2'" />
</xsl:call-template>
</xsl:with-param>
</xsl:call-template>
</xsl:if>


</xsl:if>

</vmp:editor-factsheet>

<!--  Include voor ihe  
</table>
</td>
</tr>
</table>
</td>
</tr>
-->
</xsl:otherwise>
</xsl:choose>

<!-- ============ End different parts for Restore and New =====================  -->

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item">
<table >
<tr>
<td align="right">

<xsl:if test="$BaseSetUp//vmp:action/@restore !=''" >
<input type="submit" name="action" value="restore" 
        style="{$CMTSetUp/vmp:layout/vmp:item/@button-style}"/><br /> 
</xsl:if>

<xsl:if test="$BaseSetUp//vmp:action/@save !=''" >
<input type="submit" name="action" value="save"
       style="{$CMTSetUp/vmp:layout/vmp:item/@button-style}" /><br /> 
</xsl:if>

<xsl:if test="$BaseSetUp//vmp:action/@new !=''" >
<input type="submit" name="action" value="new"
       style="{$CMTSetUp/vmp:layout/vmp:item/@button-style}"/><br />
</xsl:if>

<input type="hidden"  name="authorname" value="{$SelectAuthor}" />
<input type="hidden"  name="groupname" value="{$SelectGroup}" />
<input type="hidden"  name="selectmagazine" value="{$SelectMagazine}" /><br />
</td>
</tr>
</table>

</xsl:with-param>
</xsl:call-template>

<xsl:call-template name="s-entry">
<xsl:with-param name="type" select="'meta'" />
<xsl:with-param name="Label" />
<xsl:with-param name="Item"><xsl:copy-of select="$Spacer" /></xsl:with-param>
</xsl:call-template>


</form>



</xsl:with-param>
</xsl:call-template>

</xt:document>



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


</xsl:template>


<xsl:template name="attachicon">
<xsl:param name="Attach_name"/>
&lt;a href="<xsl:value-of select="concat($BaseDirectory,'attachments/',$Attach_name)"/>">
<xsl:choose>
<xsl:when test="substring-after($Attach_name,'.') = 'jpg' or substring-after($Attach_name1,'.') = 'jpeg'">
&lt;img src="<xsl:value-of select="$BaseUrl"/>icons/jpeg.gif" alt="jpg" border="0" ></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'pdf'">
&lt;img src="<xsl:value-of select="$BaseUrl"/>icons/pdf.gif" alt="pdf" border="0"></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'txt'">
&lt;img src="<xsl:value-of select="$BaseUrl"/>icons/text.gif" alt="txt" border="0" ></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'doc' or substring-after($Attach_name1,'.') = 'mswd'">
&lt;img src="<xsl:value-of select="$BaseUrl"/>icons/mswd.gif" alt="mswd" border="0"></xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after($Attach_name,'.')"/>
</xsl:otherwise>
</xsl:choose>&lt;/a>
</xsl:template>


<xsl:template name="subsections">
<xsl:param name="positie"/>
&lt;table  cellpadding="0" cellspacing="0">

&lt;tr bgcolor="#ffffff">
<xsl:for-each select="../vmp:subsection/@name">
&lt;td colspan="1" width="50% align="left">
<xsl:choose>


<xsl:when test=" . = $Part_subsection0 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection1 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection2 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection3 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>




<xsl:when test=" . = $Part_subsection4 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection5 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection6 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection7 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>


<xsl:when test=" . = $Part_subsection8 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>

<xsl:when test=" . = $Part_subsection9 " >
&lt;input checked  type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>" value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
&lt;/td>
</xsl:when>


<xsl:otherwise>
&lt;input   type="checkbox" name="part_subsection<xsl:value-of select="$positie"/>"  value="<xsl:value-of select="."/>"><xsl:value-of select="."/>&lt;/input>
</xsl:otherwise>
</xsl:choose>
&lt;/td>
<xsl:if test="position() = last() and position() mod '2' = '1'">
&lt;td>-
&lt;/td>
&lt;td>-
&lt;/td>
&lt;td>-
&lt;/td>
</xsl:if>
<xsl:if test="position() mod '2' = '0' and position() != '1' and position() != last() ">
&lt;/tr>
&lt;tr bgcolor="#ffffff">
</xsl:if>
</xsl:for-each>
&lt;/tr>
&lt;/table>
</xsl:template>

<xsl:template name="attachiconxml">
<xsl:param name="Attach_name"/>
<a href="{concat($BaseDirectory,'attachments/',$Attach_name)}">
<xsl:choose>
<xsl:when test="substring-after($Attach_name,'.') = 'jpg' or substring-after($Attach_name,'.') = 'jpeg'">
<img src="{$BaseUrl}icons/jpeg.gif" alt="jpg" border="0" /></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'pdf'">
<img src="{$BaseUrl}icons/pdf.gif" alt="pdf" border="0" /></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'txt'">
<img src="{$BaseUrl}icons/text.gif" alt="txt" border="0" /></xsl:when>
<xsl:when test="substring-after($Attach_name,'.') = 'doc' or substring-after($Attach_name,'.') = 'mswd'">
<img src="{$BaseUrl}icons/mswd.gif" alt="mswd" border="0" /></xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after($Attach_name,'.')"/>
</xsl:otherwise>
</xsl:choose></a>
</xsl:template>


<xsl:template name="subsectionsxml">
<xsl:param name="positie"/>

<table cellpadding="0" cellspacing="0">
<tr bgcolor="#ffffff">
<xsl:for-each select="../vmp:subsection/@name">
<td colspan="1" bgcolor="#ffffff" width="50%" align="left">
<xsl:call-template name="comparesub">
<xsl:with-param  name="ssn" select="."/>
<xsl:with-param  name="positie" select="$positie"/>
</xsl:call-template>

</td>

<xsl:if test="position() = last() and position() mod '2' = '1'">
<td bgcolor="#ffffff">-
</td>
</xsl:if>
<xsl:if test="position() mod '2' = '0' and position() != '1' and position() != last() ">
<tr bgcolor="#ffffff">
</tr>
</xsl:if>
</xsl:for-each>
</tr>
</table>
</xsl:template>


<xsl:template name="comparesub">
<xsl:param  name="ssn" />
<xsl:param name="positie"/>

<xsl:choose>
<xsl:when test="$SelectAction = 'restore'">

<xsl:choose>
<xsl:when test="$BaseArticle//vmp:part/@subsection = .">
<xsl:for-each select="$BaseArticle//vmp:part/@subsection">
<xsl:if  test=" . = $ssn">
<input checked="true"   type="checkbox" name="part_subsection{$positie}" value="{.}"><xsl:value-of select="."/></input>
</xsl:if>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<input  type="checkbox" name="part_subsection{$positie}" value="{.}"><xsl:value-of select="."/></input>
</xsl:otherwise>
</xsl:choose>

</xsl:when>
<xsl:otherwise>
<input  type="checkbox" name="part_subsection{$positie}" value="{.}"><xsl:value-of select="."/></input>
</xsl:otherwise>
</xsl:choose>

</xsl:template>






<xsl:template match="*|@*">
  <xsl:copy>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates select="node()"/>
  </xsl:copy>

</xsl:template>
  
   


</xsl:stylesheet>

