List-Item-Label with Character doesn't work
Alex Elliott <[email protected]> Wed, 15 May 2019 11:03:41 +0000
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <SL2P216MB09213B337CDC98D7C676EE1BE3090@SL2P216MB0921.KORP216.PROD.OUTLOOK.COM> |
--===============3175750582697191606==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_SL2P216MB09213B337CDC98D7C676EE1BE3090SL2P216MB0921KORP_"
--_000_SL2P216MB09213B337CDC98D7C676EE1BE3090SL2P216MB0921KORP_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm currently evaluating your XSL-FO Converter application and wanted to le=
t you know about an issue I've encountered with the use of 'fo:character' i=
n a list-item-label section.
The following excerpt of xslt works when using Apache fop and the label cha=
racter is enclosed in an 'fo:character' tag but doesn't work with xmlmind (=
list-item-body purposely excluded from the code):
<fo:list-block provisional-label-separation=3D"7mm">
<xsl:attribute name=3D"provisional-distance-between-starts"=
>
<xsl:value-of select=3D"'3mm'" />
</xsl:attribute>
<xsl:attribute name=3D"xfc:label-format">
<xsl:value-of select=3D"'•'" />
</xsl:attribute>
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label end-indent=3D"label-end=
()">
<fo:block line-stacking-str=
ategy=3D"font-height" text-align=3D"end">
<fo:charact=
er character=3D"•"/>
</fo:block>
</fo:list-item-label>
</fo:list-item>
</fo:list-block>
When using the above code in xmlmind each item is output as indented paragr=
aph instead of list items.
If I remove the 'fo:character' and put the label character inside the block=
tag it works correctly in xmlmind as shown below:
<fo:list-block provisional-label-separation=3D"7mm">
<xsl:attribute name=3D"provisional-distance-between-starts"=
>
<xsl:value-of select=3D"'3mm'" />
</xsl:attribute>
<xsl:attribute name=3D"xfc:label-format">
<xsl:value-of select=3D"'•'" />
</xsl:attribute>
<fo:list-item>
<!-- insert a bullet -->
<fo:list-item-label end-indent=3D"label-end=
()">
<fo:block line-stacking-str=
ategy=3D"font-height" text-align=3D"end">•</fo:block>
</fo:list-item-label>
</fo:list-item>
</fo:list-block>
Regards,
Alex Elliott
--_000_SL2P216MB09213B337CDC98D7C676EE1BE3090SL2P216MB0921KORP_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-AU" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">I’m currently evaluating your XSL-FO Converter=
application and wanted to let you know about an issue I’ve encounter=
ed with the use of ‘fo:character’ in a list-item-label section.=
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">The following excerpt of xslt works when using Apach=
e fop and the label character is enclosed in an ‘fo:character’ =
tag but doesn’t work with xmlmind (list-item-body purposely excluded =
from the code):<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"><fo:list-block prov=
isional-label-separation=3D"7mm"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <xs=
l:attribute name=3D"provisional-distance-between-starts"><o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <xsl:value-of select=3D"'3mm'" /><o:p></o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </x=
sl:attribute><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <xs=
l:attribute name=3D"xfc:label-format"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <xsl:value-of select=3D"'&#x2022;'" /><o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </x=
sl:attribute><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <fo=
:list-item><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <!-- insert a bullet --><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <fo:list-item-label end-indent=3D"label-end()"&=
gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; <fo:block line-stacking-strategy=3D&=
quot;font-height" text-align=3D"end"><o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"color:red"> &n=
bsp;  =
; &n=
bsp;  =
; &n=
bsp; <fo:character chara=
cter=3D"&#x2022;"/><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; </fo:block><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; </fo:list-item-label><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </f=
o:list-item><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"></fo:list-block>=
</span><o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">When using the above code in xmlmind each item is ou=
tput as indented paragraph instead of list items.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">If I remove the ‘fo:character’ and put t=
he label character inside the block tag it works correctly in xmlmind as sh=
own below:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"><fo:list-block prov=
isional-label-separation=3D"7mm"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <xs=
l:attribute name=3D"provisional-distance-between-starts"><o:p>=
</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <xsl:value-of select=3D"'3mm'" /><o:p></o:p>=
</span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </x=
sl:attribute><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <xs=
l:attribute name=3D"xfc:label-format"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <xsl:value-of select=3D"'&#x2022;'" /><o=
:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </x=
sl:attribute><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; <fo=
:list-item><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <!-- insert a bullet --><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; <fo:list-item-label end-indent=3D"label-end()"&=
gt;<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:red"> &n=
bsp;  =
; &n=
bsp;  =
; <fo:block line-stacking-strategy=3D"=
;font-height" text-align=3D"end">&#x2022;</fo:bloc=
k><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; &=
nbsp; &nbs=
p; </fo:list-item-label><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"> &nbs=
p; </f=
o:list-item><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#7030A0"></fo:list-block>=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Regards,<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Alex Elliott<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_SL2P216MB09213B337CDC98D7C676EE1BE3090SL2P216MB0921KORP_--
--===============3175750582697191606==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
XMLmind FO Converter Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/xfc-support
--===============3175750582697191606==--