[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: text indent problem
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|