<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Hi,</div>
<div> </div>
<div>I am unable to get Template Substitution working in HTML files.</div>
<div> </div>
<div>The HTML template has a <!-- mapserver template --> line at the very top.</div>
<div> </div>
<div>The Map file works fine - the images are being generated in my tmp directory. But the HTML file returned to the browser, doesn't have any of the of the substitution variables actually substituted - so I get things like [img], [version] in the returned
HTML.</div>
<div> </div>
<div>My install is a FGS Ver 9.5 package, installed onto RHEL 5.2.</div>
<div>Mapserv Version is 5.6.0</div>
<div>Apache 2.2.11 (as per FGS version check)</div>
<div> </div>
<div>Can anyone help please? (Thanks In Advance!)</div>
<div> </div>
<div>My template file is accessed by an initial form to set the query parameters</div>
<div> </div>
<div>Start File: Indexpathtest.html</div>
<div><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</div>
<div>"<a href="http://www.w3.org/TR/html4/loose.dtd"><font color="#0000FF"><u>http://www.w3.org/TR/html4/loose.dtd</u></font></a>"></div>
<div><html lang="english"></div>
<div><head></div>
<div><meta http-equiv="Content-Type" content="text/html;charset=utf-8" ></div>
<div><title>Path Testing Index</title></div>
<div></head></div>
<div><body></div>
<div> <H2>Path Testing Application</H2></div>
<div> <DIV STYLE="{display:inline;}"></div>
<div> <FORM name="mapserv" METHOD=GET ACTION="http://mymachine.mynet:8080/cgi-bin/mapserv"></div>
<div> <INPUT TYPE="hidden" NAME="map" VALUE="/home/maptools/fgs/www/htdocs/sbbt/pathtest.map"></div>
<div> <INPUT TYPE="hidden" NAME="zoomdir" VALUE=1></div>
<div> <INPUT TYPE="hidden" NAME="zoomsize" VALUE=2></div>
<div> <INPUT TYPE="hidden" NAME="mapext" VALUE="105 -45 155 -5"></div>
<div> <input type="hidden" name="mode" value="browse"></div>
<div> <INPUT TYPE="hidden" NAME="program" VALUE="/home/maptools/fgs/www/cgi-bin/mapserv"></div>
<div> <INPUT TYPE="submit" value="Map View"></div>
<div> </FORM></div>
<div> <BR></div>
<div> </DIV></div>
<div> <HR></div>
<div></body></div>
<div></html></div>
<div> </div>
<div>Templated File: pathtest.html</div>
<div><!-- MAPSERVER TEMPLATE --></div>
<div><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</div>
<div>"<a href="http://www.w3.org/TR/html4/loose.dtd"><font color="#0000FF"><u>http://www.w3.org/TR/html4/loose.dtd</u></font></a>"></div>
<div><html lang="english"></div>
<div><head></div>
<div><meta http-equiv="Content-Type" content="text/html;charset=utf-8" ></div>
<div><title>Path Testing Index</title></div>
<div></head></div>
<div><body></div>
<div> <H2>Saturn Map</H2></div>
<div> <FORM name="mapserv" METHOD=GET ACTION="http://mymachine.mynet:8080/cgi-bin/mapserv"></div>
<div> <INPUT TYPE="image" NAME="img" SRC="http://mymachine.mynet:8080[img]" width="800" height="600" BORDER="1" ALT="Saturn Map" STYLE="{border-style:solid; border-width:1px;}"></div>
<div> <input type="hidden" name="map" value="[map]"></div>
<div> <INPUT TYPE="hidden" NAME="imgext" VALUE="[mapext]"></div>
<div> <INPUT TYPE="hidden" NAME="imgxy" VALUE="400 300"></div>
<div> <INPUT TYPE="hidden" NAME="zoom" VALUE="1"></div>
<div> <input type="hidden" name="mode" value="browse"></div>
<div> <input type="hidden" name="map_web" value="[map_web]"></div>
<div> <INPUT TYPE="submit" value="Map View"></div>
<div> </FORM></div>
<div> </div>
<div> </div>
<div> <hr></div>
<div> <small><b>Version: </b>[VERSION]</small><br></div>
<div> <small><b>Errors: </b><font color="#ff0000">[ERRMSG]</font></small><br></div>
<div></body></div>
<div></html></div>
<div> </div>
<div>MAP Config File: pathtest.map</div>
<div># pathtest.map</div>
<div>MAP</div>
<div> NAME PATHTEST</div>
<div> SIZE 800 600</div>
<div> STATUS ON</div>
<div> EXTENT 105 -45 155 -5</div>
<div> IMAGECOLOR 255 255 255</div>
<div> UNITS DD</div>
<div> SYMBOLSET "/home/maptools/fgs/mapconfig/common/vortrag/symbols/symbolsmod.sym"</div>
<div> FONTSET "/home/maptools/fgs/mapconfig/common/fonts.list"</div>
<div> PROJECTION</div>
<div> "init=epsg:4283" #GDA94</div>
<div> END</div>
<div> WEB</div>
<div> TEMPLATE "<a href="http://mymachine.mynet:8080/sbbt/pathtest.html"><font color="#0000FF"><u>http://mymachine.mynet:8080/sbbt/pathtest.html</u></font></a>"</div>
<div> IMAGEPATH "/home/maptools/fgs/www/htdocs/sbbt/tmp/"</div>
<div> IMAGEURL "/sbbt/tmp/"</div>
<div> LOG "/home/maptools/fgs/www/htdocs/sbbt/pathtestlog.txt"</div>
<div> MINSCALEDENOM 1000</div>
<div> END</div>
<div> LAYER</div>
<div> NAME Coastline</div>
<div> TYPE LINE</div>
<div> STATUS DEFAULT</div>
<div> DATA "/home/maptools/fgs/data/base/osdm/globalmap2001/Vector/boundaries/coastl.shp"</div>
<div> CLASS</div>
<div> NAME 'Coast Line'</div>
<div> STYLE</div>
<div> OUTLINECOLOR 0 0 0</div>
<div> COLOR 150 150 150</div>
<div> END</div>
<div> END</div>
<div> END</div>
<div> LAYER</div>
<div> NAME 'Capitals'</div>
<div> TYPE POINT</div>
<div> STATUS DEFAULT</div>
<div> FEATURE</div>
<div> POINTS</div>
<div> 138.67286682128906 -34.715538024902344</div>
<div> END</div>
<div> TEXT "Adelaide"</div>
<div> END</div>
<div> FEATURE</div>
<div> POINTS</div>
<div> 145.08828735351562 -37.826736450195312</div>
<div> END</div>
<div> TEXT "Melbourne"</div>
<div> END</div>
<div> CLASS</div>
<div> STYLE</div>
<div> SYMBOL "punkt"</div>
<div> SIZE 10</div>
<div> OUTLINECOLOR 255 0 0</div>
<div> COLOR 255 255 0</div>
<div> END</div>
<div> LABEL</div>
<div> COLOR 0 0 0 # LABEL FONT COLOR</div>
<div> FONT "arial-bold"</div>
<div> TYPE truetype</div>
<div> SIZE 12</div>
<div> POSITION AUTO</div>
<div> END</div>
<div> END</div>
<div> END</div>
<div>END</div>
<div> </div>
<div> </div>
<div><font face="Harmony Text, sans-serif" size="3" color="#008000">Regards,</font></div>
<div><font face="Harmony Text, sans-serif" size="4" color="#000080"><b>Bill Teluk</b></font></div>
<div><font face="Harmony Text, sans-serif" size="4" color="#808080"> </font></div>
<div><font face="Harmony Text, sans-serif" size="4" color="#808080"> </font></div>
</font>
</body>
</html>