Thank you very much, Abel and David, for your detailed and helpful replys.There
was just one problem with this line:
<xsl:for-each select="node()[1]|absatz">
Only the first node before the first "absatz" node was put in the result, so I
changed the statement to:
<xsl:for-each select="node()">
which works great. Maybe you could tell me, why you did it this way?
Finally this was the way I adapted Davids solution:
<xsl:key name="a" match="node()"
use="generate-id((preceding-sibling::absatz[1]|.)[1])" />
<xsl:template match="kapitel">
<fo:block font-family="{$Font-Familie}" page-break-before="right"
font-size="10pt" line-height="12pt" text-align="justify" hyphenate="true"
hyphenation-push-character-count="3" hyphenation-remain-character-count="3"
language="de" country="DE">
<xsl:for-each select="node()">
<xsl:choose>
<xsl:when test="self::absatz">
<fo:block text-indent="1em">
<xsl:apply-templates select="key('a',generate-id())"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="key('a',generate-id())"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</fo:block>
</xsl:template>
So thanks again,
greetings,
Barbara
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--