You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Karen Mergner <Ka...@bmw.de> on 2003/02/10 12:47:12 UTC
provisional-label-separation
Hi all,
in my list I can see no changes if I specify a
provisional-label-separation or not. If the label is too long it
overwrites with list-body.
Here is the part of the xsl file:
<fo:list-block provisional-distance-between-starts="3cm"
provisional-label-separation="1cm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block id="{@ID}" font-weight="bold">
<xsl:call-template name="Long_Name"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:apply-templates select="DEF/P/TT | DEF/P/XREF | DEF/P/text()"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
Can someone help me?
Thanks, Karen
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: provisional-label-separation
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Karen Mergner wrote:
> here are a short xml file and a small xsl file to generate a list. There
> are spaces into the label but it dosn't work fine.
It's a bug, label-end() is broken (prematurely evaluated while
the enclosing block was still not laid out and had not been
assigned a width).
This is fixed now.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: provisional-label-separation
Posted by Karen Mergner <Ka...@bmw.de>.
Hello,
here are a short xml file and a small xsl file to generate a list. There
are spaces into the label but it dosn't work fine.
Karen
xsl file:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<fo:root xmlns:fox="http://xml.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Page" page-height="29.7cm"
page-width="21cm" margin-left="1cm"
margin-right="1.5cm" margin-top="0.5cm" margin-bottom="0.5cm">
<fo:region-before extent="2cm"/>
<fo:region-after extent="1cm"/>
<fo:region-end extent="1cm"/>
<fo:region-start extent="1cm"/>
<fo:region-body margin-top="2.5cm" margin-bottom="3cm"
margin-right="1.5cm" margin-left="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Page">
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="//DEF-ITEM"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template match="DEF-ITEM">
<fo:block font-family="Helvetica" font-size="10pt" text-align="left"
space-after="0.3cm">
<fo:list-block provisional-distance-between-starts="2cm"
provisional-label-separation="0.5cm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block font-weight="bold">
<xsl:value-of select="LONG-NAME"/>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
<xsl:value-of select="DEF/P"/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
</xsl:template>
</xsl:stylesheet>
xml file:
<?xml version="1.0" encoding="iso-8859-1"?>
<DEF-LIST>
<DEF-ITEM>
<LONG-NAME>Hier ein label mit spaces</LONG-NAME>
<DEF>
<P>The Extensible Markup Language (XML) is a subset of SGML that is
completely described in this
document.</P>
</DEF>
</DEF-ITEM>
<DEF-ITEM>
<LONG-NAME>noch ein label</LONG-NAME>
<DEF>
<P>The Extensible Markup Language (XML) is a subset of SGML that is
completely described in this
document.</P>
</DEF>
</DEF-ITEM>
<DEF-ITEM>
<LONG-NAME>hiereinlangerlabelohneleerzeichen</LONG-NAME>
<DEF>
<P>The Extensible Markup Language (XML) is a subset of SGML that is
completely described in this
document.</P>
</DEF>
</DEF-ITEM>
<DEF-ITEM>
<LONG-NAME>kurz</LONG-NAME>
<DEF>
<P>The Extensible Markup Language (XML) is a subset of SGML that is
completely described in this
document.</P>
</DEF>
</DEF-ITEM>
</DEF-LIST>
j3322ptm@yahoo.de schrieb:
>
> Karen Mergner wrote:
> > in my list I can see no changes if I specify a
> > provisional-label-separation or not. If the label is too long it
> > overwrites with list-body.
>
> FOP will overflow the area if it can't insert a line break.
> You'll see this if your label is a long word without spaces.
> You can insert zero width spaces to allow FOP to break it.
> There have alos been comments about a possible but as yet
> unconfirmed bug in this area, but it's hard to tell from an
> XSLT snippet, you'll have to supply some actual FO code
> (preferably small and self contained).
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: provisional-label-separation
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Karen Mergner wrote:
> in my list I can see no changes if I specify a
> provisional-label-separation or not. If the label is too long it
> overwrites with list-body.
FOP will overflow the area if it can't insert a line break.
You'll see this if your label is a long word without spaces.
You can insert zero width spaces to allow FOP to break it.
There have alos been comments about a possible but as yet
unconfirmed bug in this area, but it's hard to tell from an
XSLT snippet, you'll have to supply some actual FO code
(preferably small and self contained).
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org