Buenas, estoy aquí liado con un xslt y un xml, el caso es que me muestra valores repetidos de una consulta y no se como filtrarlo. He probado con un distinct-values en la consulta pero no funciona y por internet no encuentro nada de nada. Me devuelve la Editorial repetida. Os pego el codigo a ver si hay suerte:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
version="1.0">
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:apply-templates select="Libros/Libro/Editorial">
<xsl:sort select="."/>
</xsl:apply-templates>
</body>
</html>
</xsl:template>
<xsl:template match="Editorial">
<xsl:value-of select="."/><br />
<ul>
<xsl:variable name="VAR" select="."></xsl:variable>
<xsl:apply-templates select="/Libros/Libro[Editorial=$VAR]/Titulo">
</xsl:apply-templates>
</ul>
</xsl:template>
<xsl:template match="Titulo">
<li><xsl:value-of select="." /></li>
</xsl:template>
</xsl:stylesheet>
Gracias!