Skip to content

Instantly share code, notes, and snippets.

@6ui11em
Created May 23, 2012 16:44
Show Gist options
  • Save 6ui11em/2776291 to your computer and use it in GitHub Desktop.
Save 6ui11em/2776291 to your computer and use it in GitHub Desktop.
Symphony: Select distinct nodes
<xsl:for-each select="publishers-countries/entry">
<xsl:variable name="c" select="country/@handle" />
<xsl:if test="not(preceding-sibling::*/country/@handle = $c)">
<option>
<xsl:value-of select="country/."/>
</option>
</xsl:if>
</xsl:for-each>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment