Hallo Martin,
habe noch weitere Probleme im XSLT-Code gefunden:
<xsl:for-each select="dataarea_20/records/record/[dataarea_20/records/record/data/T_MASTER_DAT.CUR_FLAG = 'y']">
^^^ müsste lauten:
<xsl:for-each select="dataarea_20/records/record[data/T_MASTER_DAT.CUR_FLAG = 'y']">
<xsl:variable name="FK"><xsl:value-of select="data/T_MASTER_DAT.LEV_IND"/></xsl:variable>
<xsl:if test="$FK > '10330''">
^^^ hier stehen zwei schließende '', weg damit, nur den numerischen Vergleich durchführen:
<xsl:if test="$FK > 10330">
xsl:choose <xsl:when test="position() mod 2"> fo:table-row fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_STR.POS_NO"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.PART_ID"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.PART_VERSION"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.LEV_IND"/></fo:block></fo:table-cell> </fo:table-row> </xsl:when> xsl:otherwise <xsl:if test="string-length(data/T_MASTER_DAT.PART_ID) > 0"> fo:table-row fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_STR.POS_NO"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.PART_ID"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.PART_VERSION"/></fo:block></fo:table-cell> fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="data/T_MASTER_DAT.LEV_IND"/></fo:block></fo:table-cell> </fo:table-row> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:if>
<xsl:if test="$FK < '10330'">
^^^ wie schon genannt ändern in:
<xsl:if test="$FK < 10330">
<xsl:for-each select="dataarea_20/records/records/data/">
^^^ hier ist der abschließende / falsch, also:
<xsl:for-each select="dataarea_20/records/records/data">
fo:table-cell<fo:block padding-top="0.75mm"><xsl:value-of select="T_MASTER_STR.POS_NO"/></fo:block></fo:table-cell> </xsl:for-each> </xsl:if> </xsl:for-each>
Grüße, Thomas