Hvor skal "xsl:sort" placeres?
Jeg skal have sorteret "kontakter" alfabetisk efter "efternavn"... hvordan gør jeg det?Med andre ord: Hvor skal "sort" placeres??
Venlige hilsner Guster. (-;
XSL-filen =>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Kontakter</h2>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="kontakt">
<hr/>
<table style="font-family: verdana; font-size: xx-small;">
<tr>
<td style="font-weight: bold; width: 120pt;"><xsl:apply-templates select="efternavn"/>, <xsl:apply-templates select="fornavn"/></td>
<td style="width: 100pt;"><xsl:apply-templates select="tlf"/></td>
<td style="width: 100pt;"><xsl:apply-templates select="mobil"/></td>
<td style="width: 180pt;"><xsl:apply-templates select="mail"/></td>
<td style="width: 180pt;"></td>
</tr>
<tr>
<td><xsl:apply-templates select="titel"/></td>
<td><xsl:apply-templates select="firma"/></td>
<td><xsl:apply-templates select="vej"/></td>
<td><xsl:apply-templates select="by"/></td>
<td><xsl:apply-templates select="andet"/></td>
</tr>
</table>
</xsl:template>
<xsl:template match="fornavn">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="efternavn">
<xsl:value-of select="."/>
</xsl:template>
osv.....
</xsl:stylesheet>