I have been told to merge all the common names of bus stops which appear in the same location, e.g `Aberdeen` has three common stops, but they are in separate cells. How would I combine these so that all the common stops would appear under one locality `Aberdeen` in my XSL-stylesheet?

Below is my stylesheet:

```
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
  <html>
  <body>
    <h2>BusStops</h2>
    <table border="1">
      <tr bgcolor="#9acd32">
        <th>Locality</th>
        <th>BusStop</th>
        <th> Co-ordinates </th>
      </tr>
      <xsl:for-each select="BusStops/BusStopDetails">
      <xsl:sort select="LocalityName"/>     
      <tr>  
        <td> <xsl:value-of select="LocalityName"/> (<xsl:value-of select="ParentLocalityName"/>) </td>
        <td><xsl:value-of select="CommonName"/></td>
        <td>
             <a href="https://maps.google.com/maps?ll={Latitude},{Longitude}&amp;q={Latitude},{Longitude}&amp;hl=en&amp;t=m&amp;z=14">
             (<xsl:value-of select="Latitude"/>) , (<xsl:value-of select="Longitude"/>)
            </a>
        </td>
      </tr>
      </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>

```

This is my XML sample:

```
<BusStopDetails>
    <AtcoCode>639070021
    </AtcoCode> 
    <CommonName>Union Square Bus Station
    </CommonName>
    <LocalityName>Aberdeen
    </LocalityName>
    <ParentLocalityName/>
    <Latitude>57.1445763077
    </Latitude>
    <Longitude>-2.0963111958
    </Longitude>
</BusStopDetails>

<BusStopDetails>
    <AtcoCode>639080008
    </AtcoCode>
    <CommonName>Aberdeen Railway Station
    </CommonName>
    <LocalityName>Aberdeen
    </LocalityName>
    <ParentLocalityName/>
    <Latitude>57.1437934462
    </Latitude>
    <Longitude>-2.0980112638
    </Longitude>
</BusStopDetails>

-<BusStopDetails>
    <AtcoCode>9300ABA
    </AtcoCode>
    <CommonName>Aberdeen Ferry Terminal
    </CommonName>
    <LocalityName>Aberdeen
    </LocalityName>
    <ParentLocalityName/>
    <Latitude>57.1447953603
    </Latitude>
    <Longitude>-2.0917010936
    </Longitude>
</BusStopDetails>

```