Hi,<div><br></div><div><span class="Apple-style-span" style="text-decoration: underline;">I've got the current layer definition</span></div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; border-collapse: collapse; "><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; ">
NAME "ROLE_V_COMPLET"<br>CONNECTIONTYPE oraclespatial<br>CONNECTION "{5ACE86C1C85}"<br>PROCESSING "CLOSE_CONNECTION=DEFER"<br>DATA "shape FROM ROLE_V_COMPLET USING UNIQUE OBJECTID SRID 32198"<br>
TYPE    POINT<br>DUMP    TRUE<br>STATUS  ON<br>TEMPLATE "<a href="http://geomsp.msp.gouv.qc.ca/communs/todo2.html" target="_blank" style="color: rgb(66, 99, 171); ">http://geomsp.msp.gouv.qc.ca/communs/todo2.html</a>"<br>
TOLERANCE 10<br>MAXSCALE 8000<br>MINSCALE 1<br>METADATA<br>    "wms_group_title"               "MAMR-Rôle d'évaluation"<br>    "wms_name"                      "ROLE_V_COMPLET"<br>
    "wms_title"                         "Rôle"<br>    "wms_keywordlist"               ""<br>    "wms_server_version"          "1.1.1"<br>    "wms_abstract"                   "Rôle (1/8 000) (Source : MAMR)"<br>
    "wms_srs"                          "EPSG:32198 EPSG:900913"<br>    "wms_extent"                      "-1100000 -23500 1100000 2253500"<br>    "wms_metadataurl_format"  "text/html"<br>
    "wms_feature_info_mime_type"    "text/html"<br>    "gml_feature_info_mime_type"    "text/html"<br>    "gml_include_items"             "all"<br>    "wms_include_items"             "all"<br>
    "wms_dataurl_format"            "text/html"<br>    "ows_metadataurl_format"        "text/html"<br>    "ows_include_items"             "all"<br>END<br>PROJECTION<br>
    "init=epsg:32198"<br>END<br>CLASS<br>    NAME "ROLE_V_COMPLET"<br>    STYLE<br>        SYMBOL 'circle'<br>        COLOR 65 105 225<br>        SIZE 5<br>    END<br>END </p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; ">
<br></p><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; "><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; "><span class="Apple-style-span" style="text-decoration: underline;">Here my very simple template (todo2.html) which contain</span></span></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="border-collapse: separate; font-size: small; "><table></span></font></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="border-collapse: separate; font-size: small;"><tr></span></font></p>
<p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="border-collapse: separate; font-size: small;"><td></span></font></p>
</span></div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; border-collapse: collapse; ">[DATE_PRODUCTION]</span></div><div></td></div><div></tr></div><div><table></div>
<div><br></div><div><span class="Apple-style-span" style="text-decoration: underline;">And then, my GetFeatureInfo call</span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 13px; border-collapse: collapse; "><a href="http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/html&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326">http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/html&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326</a></span></div>
<div><br></div><div>
I receive this response:</div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; border-collapse: collapse; ">[DATE_PRODUCTION] -> mapserver dont seem to replace the variable with the query value</span></div>
<div><br></div><div>If I just change the info_format for text/plain or GML, it's working perfectly (so Imy connection and other parameter seem OK)</div><div><div><span class="Apple-style-span" style="font-family: Tahoma; font-size: 13px; border-collapse: collapse; "><p class="MsoNormal" style="margin-top: 0in; margin-right: 0in; margin-bottom: 0pt; margin-left: 0in; ">
<span class="Apple-style-span" style="font-family: 'Times New Roman'; "><a href="http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/plain&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326">http://myserver/cgi-wms/gouvqc?REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=ROLE_V_COMPLET&STYLES=default&INFO_FORMAT=text/plain&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:32198&BBOX=-212116.638237514,316950.878824665,-212070.655690493,316990.471589178&WIDTH=770&HEIGHT=663&QUERY_LAYERS=ROLE_V_COMPLET&X=298&Y=326</a></span></p>
<div><font class="Apple-style-span" face="'Times New Roman'"><span class="Apple-style-span" style="font-size: small;"><br></span></font></div><div><span class="Apple-style-span" style="font-size: small; "><font class="Apple-style-span" face="'Times New Roman'">I'am using MapServer 5.4.2 , </font></span><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; ">Any advice?</span></div>
</span></div></div>
<div><br></div><div>MartinO</div>