<?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="test.xsl"?> <root> <zahl value="1"/> <zahl value="1"/> <zahl value="2"/> <zahl value="3"/> usw. </root>
<?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="/"> Ausgabe:<br/> <xsl:apply-templates select="zahl"/> </xsl:template> <xsl:template match="zahl"> <xsl:if test="???"> <!-- Hier sollte eine "DISTINCT"-Bedingung sein --> <xsl:value-of select="@value"/><br/> </xsl:if> </xsl:template></xsl:stylesheet>
Ausgabe:123