Skip to content

Instantly share code, notes, and snippets.

@emchateau
Last active January 2, 2016 00:49
Show Gist options
  • Save emchateau/8225773 to your computer and use it in GitHub Desktop.
Save emchateau/8225773 to your computer and use it in GitHub Desktop.
sélectionne tout sauf le premier et le dernier élément dans une liste
<!--
title: selectAllExceptFirstAndLast
description: sélectionne tout sauf le premier et le dernier élément dans une liste
version: xslt 1.0
-->
<xsl:for-each select="element[not(position() = (1, last() ))]">
<xsl:value-of select="." separator=", "/>
</xsl:for-each>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment