<?xml-stylesheethref="snoop.xsl" type="text/xsl"?>
-<o:program>
 <o:param name="servlet:req"/>
-<snoop>
-<method>
 <o:eval select="$servlet:req.getMethod()"/>
 </method>
-<requestURI>
 <o:eval select="$servlet:req.getRequestURI()"/>
 </requestURI>
-<protocol>
 <o:eval select="$servlet:req.getProtocol()"/>
 </protocol>
-<servletPath>
 <o:eval select="$servlet:req.getServletPath()"/>
 </servletPath>
-<pathInfo>
 <o:eval select="$servlet:req.getPathInfo()"/>
 </pathInfo>
-<pathTranslated>
 <o:eval select="$servlet:req.getPathTranslated()"/>
 </pathTranslated>
-<queryString>
 <o:eval select="$servlet:req.getQueryString()"/>
 </queryString>
-<contentLength>
 <o:eval select="$servlet:req.getContentLength()"/>
 </contentLength>
-<contentType>
 <o:eval select="$servlet:req.getContentType()"/>
 </contentType>
-<serverName>
 <o:eval select="$servlet:req.getServerName()"/>
 </serverName>
-<serverPort>
 <o:eval select="$servlet:req.getServerPort()"/>
 </serverPort>
-<remoteUser>
 <o:eval select="$servlet:req.getRemoteUser()"/>
 </remoteUser>
-<remoteAddr>
 <o:eval select="$servlet:req.getRemoteAddr()"/>
 </remoteAddr>
-<remoteHost>
 <o:eval select="$servlet:req.getRemoteHost()"/>
 </remoteHost>
-<authType>
 <o:eval select="$servlet:req.getAuthType()"/>
 </authType>
-<locale>
 <o:eval select="$servlet:req.getLocale()"/>
 </locale>
-<userAgent>
 <o:eval select="$servlet:req.getHeader('User-Agent')"/>
 </userAgent>
-<session>
<!--
 get the http session 
 -->
 <o:variable name="session" select="$servlet:req.getSession()"/>
<!--
 get a simple counter variable from the session 
 -->
 <o:variable name="counter" select="$session.getAttribute('counter')"/>
-<o:if test="not($counter)">
<!--
 it doesn't exist - create 
 -->
 <o:variable name="counter" select="1"/>
 </o:if>
<!--
 increment the counter and save it to the session 
 -->
 <o:eval select="$session.setAttribute('counter', $counter + 1)"/>
 </session>
 </snoop>
 </o:program>