<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19258"><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Wingdings;
}
@font-face {
font-family: Wingdings;
}
@font-face {
font-family: Calibri;
}
@font-face {
font-family: Tahoma;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
LI.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
DIV.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 11pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt; mso-style-priority: 99
}
P.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
LI.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
DIV.MsoAcetate {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; FONT-SIZE: 8pt; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
P.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-name: msochpdefault
}
LI.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-name: msochpdefault
}
DIV.msochpdefault {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 12pt; mso-style-name: msochpdefault
}
SPAN.emailstyle17 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: windowtext; mso-style-name: emailstyle17
}
SPAN.EmailStyle20 {
FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
SPAN.BalloonTextChar {
FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text"; mso-style-name: "Balloon Text Char"
}
.msochpdefault {
FONT-FAMILY: "Calibri","sans-serif"; FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
page: WordSection1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue vLink=purple>
<DIV><SPAN class=500053814-06072012><FONT color=#0000ff size=2 face=Arial>It
would be handy to have a reference to all tags that are available for templating
their limitations in terms of where they can be placed in the template. I've
just started looking at templating for a WFS response and there's not a lot of
out there; at least, I'm finding difficulty in gathering the info that I
need.</FONT></SPAN></DIV>
<DIV><SPAN class=500053814-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=500053814-06072012><FONT color=#0000ff size=2
face=Arial>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=500053814-06072012><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=500053814-06072012><FONT color=#0000ff size=2
face=Arial>Donald</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr>
<DIV></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left><FONT size=2
face=Tahoma>-----Original Message-----<BR><B>From:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Bistrais,
Bob<BR><B>Sent:</B> 06 July 2012 15:34<BR><B>To:</B>
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: [mapserver-users] How
to get layer name in an identify template?<BR><BR></FONT></DIV>
<DIV class=WordSection1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Thanks to Steve Lime for
finding the solution:<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Use the [cl] (current layer
name) tag in my template. This does the trick. So, my template now
looks like this:<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><!-- MapServer Template
--><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><hr/><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
colspan="2"><b>[cl]</b><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"></tr></SPAN><SPAN
style="COLOR: #1f497d"><SPAN
class=500053814-06072012> </SPAN><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
align="left"><b>Tile:</b>  
[tilename]</td><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><td
align="left"><b>Download Image:</b>   <a
href=[LINK]>[LINK]</a></td><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><tr><td
colspan="2"><hr></td></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">…Thanks again
Steve!<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><O:P></O:P></SPAN></P>
<DIV>
<DIV>
<DIV style="TEXT-ALIGN: center" class=MsoNormal align=center><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></DIV>
<DIV id=divRpF812466>
<P style="MARGIN-BOTTOM: 12pt" class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt">From:</SPAN></B><SPAN
style="FONT-FAMILY: 'Tahoma','sans-serif'; COLOR: black; FONT-SIZE: 10pt"> <A
href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</A>
[mapserver-users-bounces@lists.osgeo.org] on behalf of Bistrais, Bob
[Bob.Bistrais@maine.gov]<BR><B>Sent:</B> Thursday, July 05, 2012 2:01
PM<BR><B>To:</B> <A
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><B>Subject:</B>
[mapserver-users] How to get layer name in an identify template?</SPAN><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt"><O:P></O:P></SPAN></P></DIV>
<DIV>
<DIV>
<P class=MsoNormal><SPAN style="COLOR: black">I am trying to set up a single
template, which will format the results of an identify (query by point).
Many of the layers have the same item names, so I’d like to use the same
template for those layers. I have this working well, except that
I’d like the layer name to appear at the top of each query result. How
can I put this in as a variable that MapServer can
interpret?<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black">Below is my sample code of the
template. I put [wms_title] in as the variable for the layer name, but
this doesn’t work:<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><!-- MapServer Template
--><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><hr/><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
colspan="2"><b>[wms_title]</b></td>
</SPAN><SPAN style="FONT-FAMILY: Wingdings; COLOR: black">ß</SPAN><SPAN
style="COLOR: black">-I want to replace [wms_title] with something that will
return the layer name<O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
align="left"><b>Tile:</b>  
[tilename]</td><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: black"><td
align="left"><b>Download Image:</b>   <a
href=[LINK]>[LINK]</a></td><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black"></tr><O:P></O:P></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: black"><O:P></O:P></SPAN></P></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>