usage of block-progression-dimension.minimum

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

usage of block-progression-dimension.minimum

Lanz
Hi all,

I'm trying to create a block that has a minimum heigt of 37mm by using 'block-progression-dimension.minimum' attribute in this way :


<fo:root xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oecd="http://oecd.metastore.ingenta.com/ns/" xmlns:cover="http://www.oecd.org/ilibrary/cover" xmlns:functx="http://www.functx.com" xmlns:svg="http://www.w3.org/2000/svg"
   xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <fo:layout-master-set>
      <fo:simple-page-master master-name="simple" page-height="297mm" page-width="210mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" margin-top="0mm">
         <fo:region-body/>
      </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="simple">
      <fo:flow flow-name="xsl-region-body">
[...]
<fo:block-container position="absolute" top="245mm" left="80mm" width="115mm" border="0.75pt solid black" block-progression-dimension.minimum="37mm">
    <fo:block margin="3mm" font-family="Arial" font-size="11pt" line-height="15pt" linefeed-treatment="preserve" white-space-collapse="false">United Nations Industrial Development Organization<fo:inline font-style="italic">, et al.</fo:inline> (2009), “Employment and Social Protection”, <fo:inline font-style="italic">OECD Journal on Development</fo:inline>, published online first. <fo:basic-link external-destination="http://dx.doi.org/10.1787/journal_dev-v9-art1-en" text-decoration="underline" color="#507AAA">http://dx.doi.org/10.1787/journal_dev-v9-art1-en</fo:basic-link>
    </fo:block>
</fo:block-container>
[...]
     </fo:flow>
   </fo:page-sequence>
</fo:root>

but it does not work, when the content is not long enough the dimension of the block is less than 37 mm.

Thank you for helping
Best regards
Lanz
Reply | Threaded
Open this post in threaded view
|

Re: usage of block-progression-dimension.minimum

G. Ken Holman
At 2012-07-10 20:54 +0200, Lanz wrote:
>I'm trying to create a block that has a minimum heigt of 37mm by
>using 'block-progression-dimension.minimum' attribute in this way :

You are using it correctly.  I ran your example verbatim and Antenna
House gave me a box 37mm high.  When I added more text lines than
fit, the box height extended down to accommodate it.  When I changed
the box minimum height and removed the extra lines, the box turned
out as expected.

>but it does not work, when the content is not long enough the
>dimension of the block is less than 37 mm.

That sounds like a bug in whatever processor you are using.

I hope this helps, if only to tell you what you are doing does
produce what you expect in my environment.

. . . . . . . . . Ken

--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:[hidden email]
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal


Reply | Threaded
Open this post in threaded view
|

Re: usage of block-progression-dimension.minimum

Lanz
Thanks for your answer Ken.
I was using Apache FOP 0.95 for which there was a known issue (https://issues.apache.org/bugzilla/show_bug.cgi?id=46638) fixed in FOP 1.0. I have tried with this new version but the behavior is exactly the same that the previous version...

Lanz
 
On Tue, Jul 10, 2012 at 11:18 PM, G. Ken Holman <[hidden email]> wrote:
At 2012-07-10 20:54 +0200, Lanz wrote:
I'm trying to create a block that has a minimum heigt of 37mm by using 'block-progression-dimension.minimum' attribute in this way :

You are using it correctly.  I ran your example verbatim and Antenna House gave me a box 37mm high.  When I added more text lines than fit, the box height extended down to accommodate it.  When I changed the box minimum height and removed the extra lines, the box turned out as expected.


but it does not work, when the content is not long enough the dimension of the block is less than 37 mm

That sounds like a bug in whatever processor you are using.

I hope this helps, if only to tell you what you are doing does produce what you expect in my environment.

. . . . . . . . . Ken

--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:[hidden email]
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal



Reply | Threaded
Open this post in threaded view
|

Re: usage of block-progression-dimension.minimum

Glenn Adams-2
Since this is an FOP specific issue, please pursue this thread further on [hidden email].  I would also recommend opening a new bugzilla issue on FOP, providing test input and output files, referring to the old (now closed) issue you cite below.

Regards,
Glenn

On Wed, Jul 11, 2012 at 6:57 AM, Lanz <[hidden email]> wrote:
Thanks for your answer Ken.
I was using Apache FOP 0.95 for which there was a known issue (https://issues.apache.org/bugzilla/show_bug.cgi?id=46638) fixed in FOP 1.0. I have tried with this new version but the behavior is exactly the same that the previous version...

Lanz
 
On Tue, Jul 10, 2012 at 11:18 PM, G. Ken Holman <[hidden email]> wrote:
At 2012-07-10 20:54 +0200, Lanz wrote:
I'm trying to create a block that has a minimum heigt of 37mm by using 'block-progression-dimension.minimum' attribute in this way :

You are using it correctly.  I ran your example verbatim and Antenna House gave me a box 37mm high.  When I added more text lines than fit, the box height extended down to accommodate it.  When I changed the box minimum height and removed the extra lines, the box turned out as expected.


but it does not work, when the content is not long enough the dimension of the block is less than 37 mm

That sounds like a bug in whatever processor you are using.

I hope this helps, if only to tell you what you are doing does produce what you expect in my environment.

. . . . . . . . . Ken

--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:[hidden email]
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal




Reply | Threaded
Open this post in threaded view
|

Re: usage of block-progression-dimension.minimum

Lanz
You're right Glenn, I'll open a new bugzilla issue on FOP and pursue the discussion on [hidden email]
For user information and to close this discussion on this newsgroup: I found a solution to obtain a minimum height value by using 'block-progression-dimension.optimum' attribute in addition with block-progression-dimension.minimum attribute:

<fo:root xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oecd="http://oecd.metastore.ingenta.com/ns/" xmlns:cover="http://www.oecd.org/ilibrary/cover" xmlns:functx="http://www.functx.com" xmlns:svg="http://www.w3.org/2000/svg"
   xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <fo:layout-master-set>
      <fo:simple-page-master master-name="simple" page-height="297mm" page-width="210mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" margin-top="0mm">
         <fo:region-body/>
      </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="simple">
      <fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute" top="245mm" left="80mm" width="115mm" border="0.75pt solid black" block-progression-dimension.minimum="37mm" block-progression-dimension.optimum="37mm">
    <fo:block margin="3mm" font-family="Arial" font-size="11pt" line-height="15pt" linefeed-treatment="preserve" white-space-collapse="false">Your text here</fo:block>
</fo:block-container>

     </fo:flow>
   </fo:page-sequence>
</fo:root>

Regards
Lanz

On Wed, Jul 11, 2012 at 3:51 PM, Glenn Adams <[hidden email]> wrote:
Since this is an FOP specific issue, please pursue this thread further on [hidden email].  I would also recommend opening a new bugzilla issue on FOP, providing test input and output files, referring to the old (now closed) issue you cite below.

Regards,
Glenn


On Wed, Jul 11, 2012 at 6:57 AM, Lanz <[hidden email]> wrote:
Thanks for your answer Ken.
I was using Apache FOP 0.95 for which there was a known issue (https://issues.apache.org/bugzilla/show_bug.cgi?id=46638) fixed in FOP 1.0. I have tried with this new version but the behavior is exactly the same that the previous version...

Lanz
 
On Tue, Jul 10, 2012 at 11:18 PM, G. Ken Holman <[hidden email]> wrote:
At 2012-07-10 20:54 +0200, Lanz wrote:
I'm trying to create a block that has a minimum heigt of 37mm by using 'block-progression-dimension.minimum' attribute in this way :

You are using it correctly.  I ran your example verbatim and Antenna House gave me a box 37mm high.  When I added more text lines than fit, the box height extended down to accommodate it.  When I changed the box minimum height and removed the extra lines, the box turned out as expected.


but it does not work, when the content is not long enough the dimension of the block is less than 37 mm

That sounds like a bug in whatever processor you are using.

I hope this helps, if only to tell you what you are doing does produce what you expect in my environment.

. . . . . . . . . Ken

--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/f/
G. Ken Holman                   mailto:[hidden email]
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal