Hi I would like to know how in XSLT to select the QTY into a variable and the use that to repeat the GIR, that number of times?
e.g. if QTY 12 need to repeat GIR 12 times

<xsl:value-of select="QTY"/>
<xsl:value-of select="GIRLLO"/>

If you are using XSLT 1.0, use recursive method to solve this. And example stylesheet is below.

<xsl:template match="a">
<xsl:copy-of select="QTY"/>
<xsl:call-template name="test">
<xsl:with-param name="s" select="QTY//QTY0101-QuantityQualifier"/>

<xsl:template name="test">
<xsl:param name="s"/>
<xsl:when test="$s &gt; 1">
<xsl:copy-of select="//GIR"/>
<xsl:call-template name="test">
<xsl:with-param name="s" select="$s - 1"></xsl:with-param>
<xsl:copy-of select="//GIR"/>