Shopsite template parser question
Posted: Tue Feb 03, 2004 10:12 am
I'm trying to use a template to write some html code for inclusion in
another template. The html output contains a table fragment (the intent
is to complete the table html in the template that the html is included
in). I'm having trouble getting the output to handle the table fragment
correctly. The table contains a [-- HEADER --] call and my resulting html
code seems to be including the header in its proper place in the table and
then including it again at the bottom of the table.
Does the parser simply read the input, replace the Shopsite tags and
output the html - or, is the parser doing something else behind the scenes?
The following is the end of the html generated by Shopsite:
<table cellSpacing="0" cellPadding="0" width="100%" border="1">
<tr>
<td bgcolor="#DFDFDF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
<td bgcolor="#DFDFDF" valign="top" height="400" width="145"></td>
<td bgcolor="#DFDFDF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
<td bgcolor="#FFFFFF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
#This should be the end of the generated HTML#
<tr>
<td width="33%"><img src="../PaymentLogo.gif"width="175" height="56"
alt="PaymentLogos.gif (9519 bytes)"></td>
</tr>
</table>
The HTML below the expected endpoint is the header (that was correctly
inserted in an earlier table) with the leading <table> tag apparently
stripped off by the parser???
I realize that I may be missing a problem in my templates, but if the
parser is doing something I don't know about I don't want to kill myself
trying to find a mistake that I didn't make.
Dave
another template. The html output contains a table fragment (the intent
is to complete the table html in the template that the html is included
in). I'm having trouble getting the output to handle the table fragment
correctly. The table contains a [-- HEADER --] call and my resulting html
code seems to be including the header in its proper place in the table and
then including it again at the bottom of the table.
Does the parser simply read the input, replace the Shopsite tags and
output the html - or, is the parser doing something else behind the scenes?
The following is the end of the html generated by Shopsite:
<table cellSpacing="0" cellPadding="0" width="100%" border="1">
<tr>
<td bgcolor="#DFDFDF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
<td bgcolor="#DFDFDF" valign="top" height="400" width="145"></td>
<td bgcolor="#DFDFDF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
<td bgcolor="#FFFFFF"><img height="10" alt=""
src="../themesmedia//spacer.gif" width="10" border="0"></td>
#This should be the end of the generated HTML#
<tr>
<td width="33%"><img src="../PaymentLogo.gif"width="175" height="56"
alt="PaymentLogos.gif (9519 bytes)"></td>
</tr>
</table>
The HTML below the expected endpoint is the header (that was correctly
inserted in an earlier table) with the leading <table> tag apparently
stripped off by the parser???
I realize that I may be missing a problem in my templates, but if the
parser is doing something I don't know about I don't want to kill myself
trying to find a mistake that I didn't make.
Dave