<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>question about template problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">In this template...</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><%@ page contentType="text/html" language="java" pageEncoding="UTF-8" %></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>
<BR><FONT SIZE=2 FACE="Arial"><html><head></head><body></FONT>
<BR><FONT SIZE=2 FACE="Arial"><cms:include page="/gto/inc1.html"/><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"><cms:include element="body"/><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"><cms:include page="/gto/inc2.html"/><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"><br></FONT>
<BR><FONT SIZE=2 FACE="Arial"></body></html></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">/gto/inc1.html and /gto/inc2.html are files in the same directory as the page that is using this template, containing the text "Include File 1" or "Include File 2". The page using the template has a body of "This is some text". </FONT></P>
<P><FONT SIZE=2 FACE="Arial">Viewing the page using the template, I would expect to see</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">This is some text</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 2</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">When I view this page, I see</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 2</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">If I move the <cms:include element="body"/> tag before the first include, then I see</FONT>
<BR><FONT SIZE=2 FACE="Arial">This is some text</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Include File 2</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">So the body text of the page is definitely able to be found but the order of include tags seems to affect things. Can anyone tell me why the inc1.html is being duplicated? And how I might workaround this problem?</FONT></P>
</BODY>
</HTML>