Subject: Re: [xsl] text indent problem From: "Barbara Lackenbauer" <Ronwen@xxxxxx> Date: Wed, 10 Jan 2007 00:35:28 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] text indent problem, David Carlisle | Thread | Re: [xsl] text indent problem, David Carlisle |
RE: [xsl] opinion re flexible style, Michael Kay | Date | Re: [xsl] text indent problem, David Carlisle |
Month |