I am trying to export some data in xml format from filemaker using XSLT. I want to display the same data in three places on the xml. I was displaying the data once by using for-each tag. Some how a variable can be used here but I dont know how.\[code\]<xsl:for-each select="fmp:FMPXMLRESULT/fmp:RESULTSET/fmp:ROW"> <xsl:for-each select="fmp:COL[3]/fmpATA"> <marker> <name> <xsl:value-of select="."/> </name> <xsl:variable name="pos" select="position()" /> <comment> <xsl:value-of select="../../fmp:COL[6]/fmpATA[$pos]"/> </comment> <in> <xsl:value-of select="../../fmp:COL[4]/fmpATA[$pos]"/> </in> <out> <xsl:value-of select="../../fmp:COL[5]/fmpATA[$pos]"/> </out> </marker> </xsl:for-each></xsl:for-each>\[/code\]But when I want to export the above data in three different places in the same XML, It fails. Whatever data is in the above xslt needs to be copied so that i can use it in other places in the same xslt. I'm not an XSLT person so my apologise in the begining if I'm not clear. Thanks very much