[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL FO question: Border/Padding and Indents

Subject: XSL FO question: Border/Padding and Indents
From: MURAKAMI Shinyu <murakami@xxxxxxxxxx>
Date: Tue, 15 Feb 2000 01:52:22 +0900
border padding
Hello,

I'm learning XSL FO and going to make an FO formatter,
I have some question about XSL FO specification.

WD XSL(2000-01-12)
5.3.3 Start-indent and End-indent
<quote>
End-indent = margin-corresponding + padding-end + border-end-width 
Start-indent = margin-corresponding + padding-start + border-start-width

If an absolute "margin" property is not explicity specified, these 
equations determine a computed value for the corresponding "margin" 
property given values for the three traits corresponding-indent, 
padding-corresponding and border-corresponding width.
</quote>

I understand, it means:

computed value for margin-corresponding =
   start-indent - border-start-width - padding-start

e.g.
 <fo:block border-start="5pt solid" padding-start="5pt" start-indent="10pt">
equals to
 <fo:block border-start="5pt solid" padding-start="5pt" margin-left="0pt">
(when writing-mode="lr-tb", parent area's start-indent=0)

Ok, but when both start-indent and margin-left are not specified,
how to resolve the computed value of start-indent?
 <fo:block border-start="5pt solid" padding-start="5pt">
equals to which?
 a. <fo:block ... start-indent="10pt">
    (because margin-left is default value 0)
or
 b. <fo:block ... start-indent="0pt">  (and margin-left="-10pt" !!)
    (because start-indent property is inherited)

if b. is correct, it's so different from CSS...


And,
7.9.8 "start-indent"
<quote>
... specifies the distance from the start-edge of the content-rectangle 
of the containing reference-area to the start-edge of the 
allocation-rectangle of that block-area.
</quote>

I think this "the allocation-rectangle of that block-area" is mistake,
the correct is "content-rectangle", no?


Thanks,

--
MURAKAMI Shinyu
murakami@xxxxxxxxxx
http://www.nadita.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.