Inserting new element at [2]
This is an open discussion with 3 replies, filed under XSLT.
Search
Not sure if this does you’re after?
<xsl:template match="your-array/entry"> <xsl:value-of select="whatever-element"/> <xsl:if test="position()=1"><element>This comes only after Element 1</element></xsl:if> </xsl:template>
Great, Animaux! That was it, Thanks!
Very good :)
Create an account or sign in to comment.
Hello,
I have an array of elements transformed with a apply-template tag. I would like to insert between 1 and 2 another element, which I can call with a xsl:call instruction. Is this feasible?
Thanks!