xsl-list
[Top] [All Lists]

[xsl] block and templates.

2006-09-21 11:09:29
I'm trying to put line up text that is being called from different
templates.  This probably doesn't make sense, so here is an example of
what I'm getting, what I want, and the code I'm using.

===Current Output:===
1
        This is a sentence that should be up one line.

===Expected Output:===
1       This is a sentence that is on the correct line.

===XSL:===
<xsl:template match="line">
        <fo:block line-hieght="2.0">
                <xsl:value-of select="./@number" />
                <xsl:value-of select="./line"/>
                <xsl:apply-templates />
        </fo:block>
</xsl:template>

<xsl:template match="t">
        <fo:block keep-together="always" start-indent="1.25in">
                <xsl:apply-templates />
        </fo:block>
</xsl:templates>

I think its because of how I'm using the blocks, however I can't seem to
find a way to prevent the line breaking.

Thanks!

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>