xsl-list
[Top] [All Lists]

Re: [xsl] Select All Except First and Last

2013-12-02 15:34:28


On 02.12.2013 22:10, Nathan Tallman wrote:
<xsl:for-each select="extent[not(extent[1])]">

A longer transcription of your expression is: child::extent[not(child::extent[1])]

So the for-each instruction will process the context element's extent children that don't have an extent child. In your example, that would be all extents.

Maybe this is more like what you are looking for:

<xsl:value-of select="extent[position() = (2 to last() - 1)]" separator=", "/>


     <xsl:value-of select="." separator=", "/>
</xsl:for-each>

Any help is appreciated.

Nathan

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--