<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.27">
<TITLE>The element "body" is not for template "xx"</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi list,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">It seems I'm not the first to ask, but I'd like someone in the list to be the first to answer ;-)</FONT>
</P>
<P><A HREF="http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=850A87B21AE682373B27EAB41F694A69?thread=1072"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=850A87B21AE682373B27EAB41F694A69?thread=1072</FONT></U></A>
<BR><A HREF="http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=2164A8FCCA0565FC64667714BE00FEA8?thread=1175"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=2164A8FCCA0565FC64667714BE00FEA8?thread=1175</FONT></U></A>
</P>
<P><FONT SIZE=2 FACE="Arial">I created a simple template jsp file and am trying to import html files with the extended html import as suggested here.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">However I can't manage to have it work, keep getting this error : The element "body" is not for template "xx".</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Importing the same files with default template (template two) works. Creating a new "file with free text" based on my template also works.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">My template is very simple, here's how it looks like (I tried with and without the <cms:include element="body" editable="true"/> but that didn't change a thing).</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks for your help!!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Olivier</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><%@ page session="false" %></FONT>
<BR><FONT SIZE=2 FACE="Arial"><%@ taglib prefix="cms" uri="<A HREF="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</A>" %></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><cms:template element="head"></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "</FONT><A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</FONT></U></A><FONT SIZE=2 FACE="Arial">"></FONT></P>
<P><FONT SIZE=2 FACE="Arial"><html xmlns="<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"></FONT>
<BR><FONT SIZE=2 FACE="Arial"><head></FONT>
<BR><FONT SIZE=2 FACE="Arial"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><title><cms:property name="title" escapeHtml="true" /></title></FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial"><meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; </FONT>
<BR><FONT SIZE=2 FACE="Arial">CHARSET=<cms:property name="content-encoding" default="ISO-8859-1" />"></FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial"><body></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><!-- Main page body starts here --></FONT>
<BR><FONT SIZE=2 FACE="Arial"></cms:template></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><div class="container"></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><div class="header"><div class="logo"></div></div></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><div class="main"></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><div class="left"></FONT>
<BR>
<BR>
<BR> <FONT SIZE=2 FACE="Arial"></div></FONT>
<BR>
<BR> <FONT SIZE=2 FACE="Arial"><div class="page"></FONT>
<BR>
<BR><FONT SIZE=2 FACE="Arial"><cms:template element="body"></FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial"><cms:include element="body" editable="true"/></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"></cms:template></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></div></FONT>
</P>
<P>
</P>
<P>
<BR> <FONT SIZE=2 FACE="Arial"><div class="clear"></div></FONT>
<BR><FONT SIZE=2 FACE="Arial"></div></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"></div></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><cms:template element="foot"></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!-- Main page body ends here --></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"></body></FONT>
<BR><FONT SIZE=2 FACE="Arial"></html></FONT>
<BR><FONT SIZE=2 FACE="Arial"></cms:template></FONT>
</P>
<P><B><FONT COLOR="#400040" SIZE=1 FACE="Verdana">Olivier CHIROUZE<BR>
</FONT></B><I><FONT COLOR="#000000" SIZE=1 FACE="Verdana">I&0 Infrastructure<BR>
</FONT></I><FONT COLOR="#000000" SIZE=1 FACE="Verdana"> <BR>
</FONT><U></U><U><B><FONT COLOR="#0000A0" SIZE=1 FACE="Verdana">Volvo Information Technology </FONT></B></U><B></B><FONT COLOR="#000000" FACE="Times New Roman"></FONT> </P>
<P><FONT COLOR="#000080" SIZE=1 FACE="Arial">402 avenue Charles de Gaulle </FONT><SPAN LANG="sv"> <FONT COLOR="#000000" SIZE=1 FACE="Wingdings">(<FONT FACE="Courier New"></FONT></FONT></SPAN><SPAN LANG="fr"> <FONT COLOR="#000080" SIZE=1 FACE="Arial">phone: +33 (0)4.72.96.89.39 <BR>
API: VNX 0A0 0 02 </FONT></SPAN><SPAN LANG="sv"> <FONT COLOR="#000000" SIZE=1 FACE="Wingdings 2">6<FONT FACE="Courier New"></FONT></FONT></SPAN><SPAN LANG="fr"> <FONT COLOR="#000080" SIZE=1 FACE="Arial">telecopy: +33(0)4.72.96.76.80<BR>
69635 Vénissieux Cedex - France</FONT></SPAN><SPAN LANG="sv"> <FONT COLOR="#000000" SIZE=1 FACE="Wingdings">*</FONT><FONT COLOR="#000000" SIZE=1 FACE="Wingdings 2"><FONT FACE="Courier New"></FONT></FONT></SPAN><SPAN LANG="fr"> </SPAN><A HREF="mailto:olivier.chirouze@external.renault-trucks.com"><SPAN LANG="fr"></SPAN><SPAN LANG="fr"></SPAN><SPAN LANG="fr"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Arial">olivier.chirouze@volvo.com</FONT></U></SPAN><SPAN LANG="fr"></SPAN></A><SPAN LANG="fr"></SPAN><SPAN LANG="sv"></SPAN><SPAN LANG="fr"></SPAN>
</P>
<BR>
</BODY>
</HTML>