About Headers and Footers

"Juan Larran" <[email protected]> Fri, 22 Jun 2007 11:01:20 -0300
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0268369601==
content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7B4D5.CF5734B4"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7B4D5.CF5734B4
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,
I've some experience with FreeMarker and recently i started to use fmpp
to generate ftl pages from an xml file.
Most of the pages used the same tlds and tags libraries, so I tried to
use the header configuration.
The problem that I have it's the next one:
>From the file fmpp_list.ftl i generate a lot of pages (ie
product_list_index.ftl, product_list_body.ftl, product_list_labels.ftl,
product_list_ftl, and so for different entities), when I put a header to
**/*_body_list.ftl the fmpp didn't findd that file and don't put
anything. If I put **/*.ftl they put the header to fmpp_list.ftl but not
for the generated files.
How could I put a header to the generated files?
I generated the files by the command <@pp.changeOutputFile inside the
fmpp_list.ftl
Thx a lot
Juan

------_=_NextPart_001_01C7B4D5.CF5734B4
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:[email protected]">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:ES-AR;}
h1
	{mso-style-name:"Heading 1\,Titulo1";
	mso-style-update:auto;
	mso-style-next:Normal;
	margin-top:24.0pt;
	margin-right:0in;
	margin-bottom:6.0pt;
	margin-left:.3in;
	text-align:justify;
	text-indent:-.3in;
	page-break-before:always;
	mso-pagination:widow-orphan lines-together;
	page-break-after:avoid;
	mso-outline-level:1;
	mso-list:l0 level1 lfo7;
	tab-stops:list .3in;
	font-size:14.0pt;
	font-family:Arial;
	mso-font-kerning:16.0pt;
	mso-ansi-language:ES-TRAD;}
h2
	{mso-style-name:"Heading 2\,Titulo2";
	mso-style-update:auto;
	mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:6.0pt;
	margin-left:.5in;
	text-align:justify;
	text-indent:0in;
	mso-pagination:widow-orphan lines-together;
	page-break-after:avoid;
	mso-outline-level:2;
	mso-list:l0 level2 lfo7;
	tab-stops:list .8in;
	font-size:12.0pt;
	font-family:Arial;
	mso-ansi-language:ES-TRAD;
	font-style:italic;}
h3
	{mso-style-name:"Heading 3\,Titulo3";
	mso-style-update:auto;
	mso-style-next:Normal;
	margin-top:6.0pt;
	margin-right:0in;
	margin-bottom:6.0pt;
	margin-left:1.0in;
	text-align:justify;
	text-indent:0in;
	mso-pagination:widow-orphan lines-together;
	page-break-after:avoid;
	mso-outline-level:3;
	mso-list:l0 level3 lfo7;
	tab-stops:list 1.3in;
	font-size:12.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:Arial;
	mso-ansi-language:ES-TRAD;
	font-weight:normal;
	mso-bidi-font-weight:bold;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
p.ParrafoItem, li.ParrafoItem, div.ParrafoItem
	{mso-style-name:"Parrafo Item";
	mso-style-update:auto;
	margin-top:2.0pt;
	margin-right:0in;
	margin-bottom:5.0pt;
	margin-left:1.3in;
	mso-pagination:widow-orphan lines-together;
	font-size:10.0pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";
	mso-ansi-language:ES-TRAD;}
p.Parrafo, li.Parrafo, div.Parrafo
	{mso-style-name:Parrafo;
	mso-style-update:auto;
	margin-top:2.0pt;
	margin-right:0in;
	margin-bottom:5.0pt;
	margin-left:1.0in;
	mso-pagination:widow-orphan lines-together;
	font-size:10.0pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";
	mso-ansi-language:ES-TRAD;}
p.Item, li.Item, div.Item
	{mso-style-name:Item;
	mso-style-update:auto;
	margin-top:2.0pt;
	margin-right:0in;
	margin-bottom:5.0pt;
	margin-left:1.3in;
	text-indent:-.3in;
	mso-pagination:widow-orphan lines-together;
	mso-list:l0 level4 lfo7;
	tab-stops:list 1.3in;
	font-size:10.0pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	mso-bidi-font-family:"Times New Roman";
	mso-ansi-language:ES-TRAD;}
span.EmailStyle20
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:752892202;
	mso-list-template-ids:67401662;}
@list l0:level1
	{mso-level-style-link:"Heading 1";
	mso-level-text:%1;
	mso-level-tab-stop:.3in;
	mso-level-number-position:left;
	margin-left:.3in;
	text-indent:-.3in;}
@list l0:level2
	{mso-level-style-link:"Heading 2";
	mso-level-text:"%1\.%2";
	mso-level-tab-stop:.8in;
	mso-level-number-position:left;
	margin-left:.5in;
	text-indent:0in;}
@list l0:level3
	{mso-level-style-link:"Heading 3";
	mso-level-text:"%1\.%2\.%3";
	mso-level-tab-stop:1.3in;
	mso-level-number-position:left;
	margin-left:1.0in;
	text-indent:0in;}
@list l0:level4
	{mso-level-style-link:Item;
	mso-level-text:"%4\)";
	mso-level-tab-stop:1.3in;
	mso-level-number-position:left;
	margin-left:1.3in;
	text-indent:-.3in;}
@list l0:level5
	{mso-level-text:"%1\.%2\.%3\.%4\.%5";
	mso-level-tab-stop:.7in;
	mso-level-number-position:left;
	margin-left:.7in;
	text-indent:-.7in;}
@list l0:level6
	{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
	mso-level-tab-stop:.8in;
	mso-level-number-position:left;
	margin-left:.8in;
	text-indent:-.8in;}
@list l0:level7
	{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
	mso-level-tab-stop:.9in;
	mso-level-number-position:left;
	margin-left:.9in;
	text-indent:-.9in;}
@list l0:level8
	{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	margin-left:1.0in;
	text-indent:-1.0in;}
@list l0:level9
	{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
	mso-level-tab-stop:1.1in;
	mso-level-number-position:left;
	margin-left:1.1in;
	text-indent:-1.1in;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>Hello,<o:p></o:p></span></font=
></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>I&#8217;ve some experience =
with
FreeMarker and recently i started to use fmpp to generate ftl pages from =
an xml
file.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>Most of the pages used the =
same tlds
and tags libraries, so I tried to use the header =
configuration.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>The problem that I have =
it&#8217;s
the next one:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>From the file fmpp_list.ftl i =
generate
a lot of pages (ie product_list_index.ftl, product_list_body.ftl,
product_list_labels.ftl, product_list_ftl, and so for different =
entities), when
I put a header to **/*_body_list.ftl the fmpp didn&#8217;t findd that =
file and don&#8217;t
put anything. If I put **/*.ftl they put the header to fmpp_list.ftl but =
not
for the generated files.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>How could I put a header to =
the
generated files?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>I generated the files by the =
command
&lt;@pp.changeOutputFile inside the =
fmpp_list.ftl<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>Thx a =
lot<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-ansi-language:EN-US'>Juan<o:p></o:p></span></font><=
/p>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C7B4D5.CF5734B4--


--===============0268369601==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============0268369601==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
fmpp-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fmpp-open

--===============0268369601==--