title: XSLT Add Headers When Row Variable Changes
body: <p>We have a Python script that generates a report of XML output similar to this:</p>
  
  <pre><code>&lt;ROOT&gt;
    &lt;results3&gt;
      &lt;ROW **TicketNumber="CHG000000061374"** Env=" " CustomerProject="MCI-Sacramento"     Program="Infrastructure" Summary="INFRA - Bi-Weekly Sac Portal Maintenance - SACPORTAL2"  ImplementorGroup="Database Management" Implementor="Juan "/&gt;
      &lt;ROW **TicketNumber="CHG000000061374"** Env=" " CustomerProject="MCI-Sacramento" Program="Infrastructure" Summary="INFRA - Bi-Weekly Sac Portal Maintenance - SACPORTAL2"  ImplementorGroup="Database Management" Implementor="Malcolm"/&gt;
      &lt;ROW **TicketNumber="CHG000000061374"** Env=" " CustomerProject="MCI-Sacramento" Program="Infrastructure" Summary="INFRA - Bi-Weekly Sac Portal Maintenance - SACPORTAL2" ImplementorGroup="Incident Support-OSSC" Implementor="Amar"/&gt;
      &lt;ROW **TicketNumber="CHG000000061375"** Env=" " CustomerProject="Verizon-KOVR" Program="Operations - SAC" Summary="INFRA - Server decom - see description" ImplementorGroup="Operations - SAC" Implementor="Ralph"/&gt;
      &lt;ROW **TicketNumber="CHG000000061375"** Env=" " CustomerProject="Verizon-KOVR" Program="Operations - SAC" Summary="INFRA - Server decom - see description" ImplementorGroup="Operations - SAC" Implementor="Ralph"/&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>The XML is then transformed into HTML.</p>
  
  <p>When the TicketNumber variable changes I'd like to add a Header row or add a blank row or change the formatting so that the user can easily see all the info for one ticket grouped together. Otherwise it runs altogether.  Is there a way to do this in XSLT?</p>