[xep-support] block-container with width specified as percentage

From: Peter David Shannon @Mohd Peter Murni Abdullah Shannon <@Mohd>
Date: Wed Jan 21 2015 - 23:42:03 PST


I don’t seem to be able to get correct output when a block-container’s width is specified as a percentage. Is this supported? I can’t find anything to say it’s not but I can’t find any examples for XEP anywhere.

I adapted the following from one of the XEP examples. If the width, in red, is set as 30% the space the container takes up looks reasonable but its children only seem to occupy a fraction of it, always on the left no matter if the float is start or end, which might well also be 30%.

If the width is set to an amount, say 5cm as here, the children occupy the whole block-container. Any ideas?

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:simple-page-master master-name="all-pages">
         <fo:region-body region-name="xsl-region-body" margin="0.7in"
           column-gap="0.25in" border="0.25pt solid gray" padding="6pt"/>
         <fo:region-before region-name="xsl-region-before" extent="0.7in"
           display-align="after" padding="6pt 0.7in"/>
         <fo:region-after region-name="xsl-region-after" extent="0.7in"
           display-align="before" padding="6pt 0.7in"/>
   <fo:page-sequence master-reference="all-pages">
      <fo:flow flow-name="xsl-region-body">
            <fo:block font="bold 14pt Helvetica" space-before="18pt"
              space-before.conditionality="discard" space-after="6pt"
              keep-together.within-column="always" text-align="center"
              padding="3pt" background-color="silver"> Inlines - Borders,
              padding, and background </fo:block>

            <fo:block font="12pt Times" space-before="6pt" space-after="6pt">
             This text tests borders and background on <fo:wrapper
             element, including conditional borders/padding.
            <fo:float float="end" clear="end">
              <fo:block-container width="5cm">
                <fo:block font="12pt Times" space-before="6pt" space-after="6pt">
                  This text tests borders and background on <fo:wrapper
                    font-family="monospace">fo:inline</fo:wrapper> element,
                  including conditional borders/padding.



Privileged/Confidential information may be contained in this message. If you are neither the intended recipient and have received this message in error, please delete this message and notify the sender immediately. Strict Prohibition: This message if received in error, whether in part or in whole, should not be reviewed, retained, copied, reused, disclosed, distributed or used for any purpose whatsoever. Such unauthorised use may be unlawful and may contain material protected by the Official Secrets Act (Cap 153) of the Laws of Brunei Darussalam. Disclaimer The Government of His Majesty the Sultan and Yang Di-Pertuan of Brunei Darussalam accepts no responsibility for loss or damage arising from the use of this message. This message shall not operate to bind to any order or contract unless pursuant to an explicit written agreement.


(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
Received on Thu Jan 22 02:58:47 2015

This archive was generated by hypermail 2.1.8 : Thu Jan 22 2015 - 02:58:54 PST