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> [EMAIL PROTECTED] 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]