Hello,

I need some help regarding the layout of blocks using xml-fo. Based on a certain condition (value of an xml node), a value of a node will be rendered right after the previous node value.

For example,
Code:
<Line>
    <Section>
        <Type>PAD</Type>
        <Text>To be or </Text>
    </Section>
    <Section>
        <Type>PAD</Type>
        <Text>not to be. </Text>
    </Section>
    <Section>
        <Type>END</Type>
        <Text>That is the question.</Text>
    </Section>
</Line>
The result should be like this...
To be or
not to be. That is the question.

my xsl looks something like this...
Code:
	<xsl:choose>
		<xsl:when test="Type = 'END'">
			<fo:block font-size='10pt'>
				<xsl:value-of select="Text"/>
			</fo:block>
		</xsl:when>
		<xsl:otherwise>
			<fo:block font-size='10pt'>
				<xsl:value-of select="Text"/>
			</fo:block>
		</xsl:otherwise>
	</xsl:choose>
Is there an attribute that I can use for the block where it would add to the end of the previous block? Or am I doing it the wrong way?

Thanks in advance!