<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<!-- $Id: requests-by-country.xml,v 1.9 2002/11/14 21:16:59 flacoste Exp $ -->  
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="www" schema="www-domain"
 id="requests-by-country" charttype="pie">

 <lire:title>Requests By Top Level Domain Report</lire:title>
 <lire:description>
  <para>This report shows the number of requests for top level domain.</para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="country_to_show" type="int" default="0">
   <lire:description>
    <para>This parameter controls the number of countries to show.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>Requests By Top Level Domain</lire:title>

  <lire:description>
   <para>The <quote>top level domain</quote> is determined from the
    hostname of the client. There is no real correlation to where the
    user is geographically located. For example, a client connecting
    from the hostname <systemitem
    class="systemname">ppp10.nl-div.globalcorp.co.uk</systemitem>
    will get listed as a United Kindom top level domain, even when
    that user is connecting from a division in The Netherlands.
   </para>
  </lire:description>

 </lire:display-spec>

 <lire:filter-spec>
  <lire:ne arg1="$country" arg2="Unknown"/>
 </lire:filter-spec>

 <lire:report-calc-spec>
  <lire:group sort="-request_total">
   <lire:field name="country"/>

   <lire:count name="request_total" label="Requests"/>
   <lire:count name="request_ratio" ratio="table" label="% Total"/>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>

