<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="ISO-8859-1"/>

<xsl:template match="/">
<html>
<head>
<title>
Liste des services
</title>
</head>
<body>
<h1>
Liste des services
</h1>
<blockquote>

  <xsl:apply-templates select="//service">
      <xsl:sort />
  </xsl:apply-templates>

</blockquote>
</body>
</html>
</xsl:template>

<xsl:template match="service[not(preceding-sibling::personne/service=current())]">
  <p>
  <xsl:value-of select="." />
  </p>
</xsl:template>

<!-- la regle suivante est obligatoire                -->
<!-- car sinon la regle par defaut text() s'applique  -->
<!-- aux services non retenus par la regle precedente -->

<xsl:template match="service" />

</xsl:stylesheet>
