[xep-support] Leaders with margins
Peter Drivas
peter.drivas at gexinc.com
Thu Feb 28 08:44:32 PST 2002
Gustaf,
Use the following:
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="test">
<fo:region-body margin="20mm" border="0.25mm solid silver"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test">
<fo:flow flow-name="xsl-region-body">
<fo:block start-indent="15mm" > <------------ start-indent is in
the block specification.
<fo:leader
leader-pattern="rule"
leader-length="100%"
rule-thickness="0.25mm"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
I think this has something to do with inheriting/not inheriting the value
from the block. Anyway, it worked when I tried it.
Peter
-----Original Message-----
From: owner-xep-support at www.renderx.com
[mailto:owner-xep-support at www.renderx.com]On Behalf Of Gustaf Liljegren
Sent: Thursday, February 28, 2002 11:17 AM
To: xep-support at renderx.com
Subject: Re: [xep-support] Leaders with margins
From: "Peter Drivas" <peter.drivas at gexinc.com>:
> You might want to try using the start-indent attribute instead of
> margin-left. I needed to extend the rule beyond the body region and used a
> negative value. Here's what I did:
Yes, I was wrong about margin. There are no margin properties for fo:leader.
I found 'start-intent' too, but it won't work. Here's one test I did:
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="test">
<fo:region-body margin="20mm" border="0.25mm solid silver"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="test">
<fo:flow flow-name="xsl-region-body">
<fo:block >
<fo:leader
leader-pattern="rule"
leader-length="100%"
rule-thickness="0.25mm"
start-indent="15mm"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
The leader spans the full width of the body region, as if 'start-indent' has
no effect.
Gustaf
-------------------
By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list