У меня есть следующий XML
<R N="14" MIME="application/pdf">
<RK>7</RK>
<FS NAME="date" VALUE="2007-11-01" />
<MT N="Abstract" V="Lorem Ipsum is simply dummy text of the printing " />
<MT N="Abstract1" V="and typesetting industry. Lorem Ipsum has been the industry's standard " />
<MT N="Abstract2" V="dummy text ever since the 1500s, when an unknown printer took a galley" />
<MT N="CreationDate" V="D:20070730173554+05'30'" />
<MT N="Creator" V="PageMaker 6.5" />
<MT N="Producer" V="Acrobat Distiller 8.0.0 (Windows)" />
<MT N="ModDate" V="D:20071024091122+05'30'" />
<S>
<b>...</b> handling / storage. Operational reactor physics plays an important role in<br/>
efficient, smooth and safe operation of <b>nuclear reactor</b>. In <b>...</b>
</S>
<LANG>en</LANG>
</R>
Используя XSLT, мне нужно объединить значения Abstract, Abstract1, Abstract2, Abstract3 ... и так далее.
Мой XSLT выглядит примерно так
<xsl:template match="R">
<xsl:choose>
<xsl:when test="MT[@N = 'Abstract' and @V != '']">
<xsl:call-template name="reformat_keyword">
<xsl:with-param name="orig_string" select="concat(MT[@N='Abstract']/@V,MT[@N='Abstract1']/@V,MT[@N='Abstract2']/@V)" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$show_res_snippet != '0'">
<xsl:call-template name="reformat_keyword">
<xsl:with-param name="orig_string" select="S" />
</xsl:call-template>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Вместо статической конкатенации мне нужна универсальная функция.