[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: text indent problem

Subject: Re: text indent problem
From: "Barbara Lackenbauer" <Ronwen@xxxxxx>
Date: Wed, 10 Jan 2007 00:35:28 +0100
barbara lackenbauer
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:when test="self::absatz">
		  	<fo:block text-indent="1em">
		    	<xsl:apply-templates select="key('a',generate-id())"/>
		  	<xsl:apply-templates select="key('a',generate-id())"/>

So thanks again,

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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.