0
我只需要在被吸收的公司第一次出現之後放置「(立憲公司)」。或者換句話說,把這個字符串放在第二個吸收的Cmapny事件上,除了第一個字符串等。先謝謝你!如何在xsl中第一次出現循環後放置某個文本或字符串?
<xsl:for-each select="absorbedCompanies/absorbedCompany">
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="0pt"> <xsl:value-of select="absorbedCompanyName"/> <xsl:value-of select="absorbedSuffix"/>
</fo:block>
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="1pt"> <xsl:value-of select="absorbedDoingBusiness"/>
</fo:block>
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="0pt">
</fo:block>
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="20pt">(Constituent Corporations)
</fo:block>
<xsl:if test="position() < last()-1">
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="10pt">and
</fo:block>
</xsl:if>
<xsl:if test="position() = last()-1">
<fo:block font-size="14pt" font-weight="bold" text-align="center" space-after.optimum="10pt">and
</fo:block>
</xsl:if>
<xsl:if test="position() = last()"></xsl:if>
</xsl:for-each>
它的工作原理,我從來沒有想到這一點。對不起,我用xslt新的。先生非常感謝您 –