Tach Mathias,
hier das wohlgeformte XML
...
Mit diesem Ansatz
<xsl:template match="/">
<teile_neu>
<xsl:apply-templates select="//BoQCtgy"/>
</teile_neu>
</xsl:template>
<xsl:template match="BoQCtgy">
<xsl:variable name="nr">
<xsl:for-each select="ancestor-or-self::BoQCtgy">
<xsl:value-of select="@RNoPart"/>
<xsl:if test="position() != last()"><xsl:text>.</xsl:text></xsl:if>
</xsl:for-each>
</xsl:variable>
<teil nr="{$nr}"/>
</xsl:template>
komme ich bis zu
<?xml version="1.0" encoding="ISO-8859-1"?>
<teile_neu>
<teil nr="1"/>
<teil nr="1.10"/>
<teil nr="1.10.10"/>
</teile_neu>
Da müssten wohl noch die Bezüge zu BoQBody und Itemlist/Item hinein.
Man liest sich,
svg4you