<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.text.xml.fop.user">
    <title>gmane.text.xml.fop.user</title>
    <link>http://blog.gmane.org/gmane.text.xml.fop.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27034"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27033"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27032"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27031"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27030"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27029"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27028"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27027"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27026"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27025"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27024"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27023"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27022"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27021"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27020"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27019"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27018"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27017"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27016"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.text.xml.fop.user/27015"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27034">
    <title>Fedora 9 and fop</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27034</link>
    <description>Hi all,

I have recently upgraded my computer to fedora 9 (was fedora core 4) and 
suddenly fop doesn't work anymore. The X server is running, but I also tried 
the -Djava.awt.headless=true trick, which didn't work either.

Whenever I try to render a page, I am getting this in the logfile:

building formatting object tree
[1]
[1]

And then fop hangs.

On other machines the output looks like this:

building formatting object tree
[1]
table-layout=auto is not supported, using fixed!
Last page-sequence produced 1 pages.
Parsing of document complete, stopping renderer
Initial heap size: 20749Kb
(): Current heap size: 19121Kb
Total memory used: -1627Kb
Memory use is indicative; no GC was performed
These figures should not be used comparatively
(): Total time used: 388ms
Pages rendered: 1
Avg render time: 388ms/page

This applies to JDK 1.6 and fop 0.20.5, but I guess newer versions as well, 
since they also require X support via Batik, no?

I am guessing that some X libraries weren't installed, is there any 
information which ones are actually needed?

Many thanks in advance,

Ulrich
</description>
    <dc:creator>Ulrich Mayring</dc:creator>
    <dc:date>2008-10-06T17:58:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27033">
    <title>Re: Trying to programmatically add fonts</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27033</link>
    <description>
Hi,
fopFactory.setUserConfig(new File(userConfigPath));
works for me !!!

To generate a FOP font metrics file (.xml) and create a UserConfigFile, I
have done what's explained here:
http://www.sagehill.net/docbookxsl/AddFont.html
http://xmlgraphics.apache.org/fop/0.94/fonts.html

I use FOP 0.95beta1
but setUserConfig works only after I have excluded the default dependency
and add one manually.
That's from my pom.xml file : 

&lt;dependency&gt;
  &lt;groupId&gt;org.apache.xmlgraphics&lt;/groupId&gt;
  &lt;artifactId&gt;fop&lt;/artifactId&gt;
  &lt;version&gt;0.95beta-1&lt;/version&gt;
  &lt;exclusions&gt;
  &lt;exclusion&gt;
  &lt;groupId&gt;org.apache.avalon.framework&lt;/groupId&gt;
  &lt;artifactId&gt;avalon-framework-api&lt;/artifactId&gt;
  &lt;/exclusion&gt;
  &lt;/exclusions&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;avalon&lt;/groupId&gt;
  &lt;artifactId&gt;avalon-framework&lt;/artifactId&gt;
  &lt;version&gt;4.1.4&lt;/version&gt;
  &lt;/dependency&gt;





eborisow wrote:

</description>
    <dc:creator>Frederic W</dc:creator>
    <dc:date>2008-10-06T16:00:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27032">
    <title>RE: Upgrade 0.20.5 to 0.95: all texts are shifted to top!</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27032</link>
    <description>I am not quite sure what you are after but I do believe the current FOP
behavior is correct with respect to the specification. And yes, you won't
see any difference in glyph placing in your scenario and nor should you. In
the default case line-height is determined by the 'em' box defined by the
font (which is a fixed size box (at least in height) for a given font) plus
a small margin for line spacing (the half-leading). The fonts 'em' box also
defines the position of the default alignment baseline. This guarantees that
in a paragraph written in the same font all lines are equally spaced
independent of which sets of glyphs from the font appear on each line. It
also guarantees if you have two paragraphs in adjacent cells in a table both
using the same font that all lines are properly aligned across the cells
(assuming identical settings). Both of these effects are highly desirable in
common typesetting scenarios.

You can manipulate this behavior by adjusting various properties, like
line-height, line-stacking-strategy, alignment-baseline, ....


</description>
    <dc:creator>Manuel Mall</dc:creator>
    <dc:date>2008-10-06T12:07:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27031">
    <title>Layout Question -</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27031</link>
    <description>
Hi,

I have a requirement to do the following:

Text will be on the right-hand pages (even) with supporting illustration on
the facing left-hand pages (odd).


Is this possible using xsl-fo? I am generating the FO from xslt. Text and
graphics can be just about any where in the markup, so I am having trouble
trying to figure this out.

Thanks in advance,

Phil

</description>
    <dc:creator>Philip V</dc:creator>
    <dc:date>2008-10-06T11:44:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27030">
    <title>Re: Upgrade 0.20.5 to 0.95: all texts are shifted to top!</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27030</link>
    <description>

Vincent Hennebert-2 wrote:

I did some more testing and the result is, that the new FOP 0.95 always has
the same result:

                   &lt;fo:block text-align="start"  font-family="{$Font}"
font-size="20pt" color="{$TitleFontColor}"&gt;
                          &lt;xsl:text&gt;geeeeeeeeeeeeeeeeee&lt;/xsl:text&gt;
                   &lt;/fo:block&gt;

No matter if I only set capital letters or only small caps, only "gjy" or
with/without paranthesis, all examples have the same result, i.e. a letter
is always placed at the same horizontal position - no matter if/what other
letters are in the same line/block. In my example font, the text is always
displayed that an "e" is exactly horizontal centered.

As you might argue, that it's more "correct" to center the small letters
like "e", it looks really awkward if a line/block only has a number, because
the digits are also "shifted upwards".


In addition, with the fo:inline "workaround", the whole line/block gets a
bigger height. :-(
</description>
    <dc:creator>j1997</dc:creator>
    <dc:date>2008-10-06T09:51:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27029">
    <title>Re: Adding an icon before a chapter/section title</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27029</link>
    <description>
what I am actually trying to do is the following:

&lt;!-- Setting chapter title to separate number and label --&gt;
&lt;xsl:template name="chaptitle.title"&gt;
  &lt;xsl:param name="node" select="."/&gt;
  &lt;xsl:variable name="id"&gt;
    &lt;xsl:call-template name="object.id"&gt;
      &lt;xsl:with-param name="object" select="$node"/&gt;
    &lt;/xsl:call-template&gt;
    &lt;/xsl:variable&gt;


  &lt;fo:block xsl:use-attribute-sets="chap.label.properties"&gt;
    &lt;xsl:apply-templates select="$node" mode="label.markup"/&gt;
  &lt;/fo:block&gt;

  &lt;fo:block xsl:use-attribute-sets="chap.title.properties"&gt;

    &lt;fo:list-block provisional-distance-between-starts="1cm + 8pt"
                    provisional-label-separation="8pt"&gt;
      &lt;fo:list-item&gt;
          &lt;fo:list-item-label end-indent="label-end()"&gt;
            &lt;fo:block&gt;
              &lt;fo:external-graphic&gt;
        &lt;xsl:attribute name="src"&gt;
&lt;xsl:call-template name="fo-external-image"&gt;
  &lt;xsl:with-param name="filename" select=concat('images', &lt; at &gt;icon, '.png'/&gt;
&lt;/xsl:call-template&gt;
      &lt;/xsl:attribute&gt;
              &lt;/fo:external-graphic&gt;
            &lt;/fo:block&gt;
          &lt;/fo:list-item-label&gt;
          &lt;fo:list-item-body start-indent="body-start()"&gt;
              &lt;fo:block&gt;
                &lt;xsl:apply-templates select="$node" mode="title.markup"/&gt;
              &lt;/fo:block&gt;
          &lt;/fo:list-item-body&gt;
      &lt;/fo:list-item&gt;
    &lt;/fo:list-block&gt;
  &lt;/fo:block&gt;
&lt;/xsl:template&gt;

An then in the xml file itself I set:

&lt;chapter icon="advanced"&gt;
&lt;title&gt;Advanced Settings&lt;/title&gt;
....
where "advanced" is the name of the PNG file in the 'images' folder. The
question is how I can pass the variable icon value (in this case "advanced")
to  my chapter template.

Thanks in advance!
Nancy


nancy_b wrote:

</description>
    <dc:creator>nancy_b</dc:creator>
    <dc:date>2008-10-06T08:30:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27028">
    <title>Re: Background image as a footer separator</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27028</link>
    <description>
Hi Andreas,

Thanks for your response!

The problem with fo-external-graphic is that it does not work as a
background for a text that is placed in the footer. ;-( So frustrating...

Best wishes,
Nancy


Andreas Delmelle-2 wrote:

</description>
    <dc:creator>nancy_b</dc:creator>
    <dc:date>2008-10-06T08:23:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27027">
    <title>Re: Background image as a footer separator</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27027</link>
    <description>
Hi



Since the image is used as a background, there is no way to scale it  
to fit the page-width during formatting. This is only possible with  
either fo:external-graphic or fo:instream-foreign-object (to which  
the content-height/content-width properties actually apply; not sure  
to which element they are being added in your code)

The only two options I see are:
- either pre-scale the 'footer.png' image, so it already has the  
right dimensions
- or abandon the approach of using a background-image, and try to  
replace it by a fo:external-graphic, which allows you to use the  
combination of 'width="100%" content-width="scale-to-fit"


HTH'!

Andreas
</description>
    <dc:creator>Andreas Delmelle</dc:creator>
    <dc:date>2008-10-05T18:17:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27026">
    <title>Re: Display xml embedded image</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27026</link>
    <description>
Hi


This approach fails because the 'foreign' content is not XML.

If I interpret correctly, what you are looking for is an fo:external- 
graphic with a 'data:' URL as its source.

Depending on the actual format of the image file, something like:

&lt;fo:block&gt;
   &lt;fo:external-graphic&gt;
     &lt;xsl:attribute name="src"&gt;
       &lt;xsl:value-of select="concat('data:image/png;base64,',  
Immagini/FileBean/FileRawData)" /&gt;
     &lt;/xsl:attribute&gt;
   &lt;/fo:external-graphic&gt;
&lt;/fo:block&gt;

FOP offers support for the data URI scheme out-of-the-box.

HTH!

Cheers

Andreas
</description>
    <dc:creator>Andreas Delmelle</dc:creator>
    <dc:date>2008-10-05T18:04:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27025">
    <title>Background image as a footer separator</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27025</link>
    <description>
Hi guys,

I am trying to put an image as a footer separator. But the problem is that
it does not cover the whole page width (not including the margins of
course). Could you please advise me what I do wrong?

Here is the code:
&lt;xsl:param name="footer.path" 
  select="'../scripts/images/footer.png'"/&gt;

&lt;xsl:template name="foot.sep.rule"&gt;
  &lt;xsl:param name="pageclass"/&gt;
  &lt;xsl:param name="sequence"/&gt;
  &lt;xsl:param name="gentext-key"/&gt;

  &lt;xsl:if test="$footer.rule != 0"&gt;
      &lt;xsl:attribute name="background-image"&gt;
      &lt;xsl:call-template name="fo-external-image"&gt;
&lt;xsl:with-param name="filename" select="$footer.path"/&gt;
      &lt;/xsl:call-template&gt;
    &lt;/xsl:attribute&gt;
  &lt;!--&lt;xsl:attribute name="background-attachment"&gt;fixed&lt;/xsl:attribute&gt;--&gt;
  &lt;xsl:attribute name="background-repeat"&gt;no-repeat&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="background-position-horizontal"&gt;left&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="background-position-vertical"&gt;center&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="content-width"&gt;80pt&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="content-height"&gt;1cm&lt;/xsl:attribute&gt;
  &lt;/xsl:if&gt;
&lt;/xsl:template&gt;

Thanks in advance!

</description>
    <dc:creator>nancy_b</dc:creator>
    <dc:date>2008-10-05T13:42:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27024">
    <title>Display xml embedded image</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27024</link>
    <description>
Hi all I've this xml with an embedded image:

 &lt;Immagini&gt;
    &lt;FileBean&gt;
      &lt;FileRawData&gt;/9j/4AAQSkZJRgABAQEASABIAAD/2wBDA...

I'm trying to display it with something like this without results:

&lt;fo:block&gt;
 &lt;fo:instream-foreign-object&gt;
       
                    &lt;xsl:value-of select="Immagini/FileBean/FileRawData"/&gt;
             
        &lt;/fo:instream-foreign-object&gt;
&lt;/fo:block&gt;

can u help me?

Dox
</description>
    <dc:creator>danyolgiax</dc:creator>
    <dc:date>2008-10-05T12:05:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27023">
    <title>Adding an icon before a chapter/section title</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27023</link>
    <description>
Hi guys,

Using Docbook XML/XSL and FOP 0.94 on Linux Debian.

Has any of you tried to add an icon before a chapter/section title? Asked
the same question on the Docbook forum, but no answer.


Thank you all in advance!
Nancy
</description>
    <dc:creator>nancy_b</dc:creator>
    <dc:date>2008-10-04T22:27:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27022">
    <title>Re: Upgrade 0.20.5 to 0.95: all texts are shifted to top!</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27022</link>
    <description>

FWIW: I don't think this property will really solve anything. "line- 
stacking-strategy" tells the formatter how the lines in a given block  
are to be stacked, or IOW, which height will be used for each line- 
area. For a value of "max-height", the actual line-height can vary  
for each line, depending on the content. (in the Recommendation's  
terms: each line will use the 'maximum-line-rectangle') So, if an  
image appears in the line, and the image is larger than the largest  
glyph, then the line will be as high as that image (plus half-leading).
For a value of "font-height", the lines for a given block will all  
have the same actual height, which depends on the font(-size) of the  
block in question (in the Recommendation's terms: each line will use  
the 'nominal-requested-line-rectangle'). Result is that the same  
image would now overflow the previous or next line(s), since it does  
not fit. Analogous reasoning for nested inlines or wrappers with a  
different font or simply a larger font-size than the block.

FOP currently offers support for those two values: max-height and  
font-height. The value of line-height is not supported. I haven't  
checked yet whether FOP follows the Recommendation here, and does the  
same for line-height as it does for max-height.

What you can do, by specifying "font-height", is make sure that the  
lines in cell 1.1 are always exactly the same height as in cell 1.2,  
with the described side-effect for embedded text in a larger font(- 
size) or larger images.


Cheers

Andreas</description>
    <dc:creator>Andreas Delmelle</dc:creator>
    <dc:date>2008-10-04T08:47:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27021">
    <title>RE: Trying to enlarge a background image</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27021</link>
    <description>Hi Jeff,
For that purpose, you should use your background image with an fo:external-object in absolute position in a static content, using an fo:block-container.

FYI, with FOP 0.9x, static content is drawn before (and then below) flow content.

HTH,
Pascal


</description>
    <dc:creator>Pascal Sancho</dc:creator>
    <dc:date>2008-10-03T14:51:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27020">
    <title>Re: pdf-image extension problems</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27020</link>
    <description>Thanks for the reply.The exception is thrown when a page is addressed which
does not exist. So I guess the exception is one way of dealing with that. I
would find it easier to get a missing image warning in the log in such cases
and see the rendering process continued. Similar to what happens with image
references that do not exist.

Peter

org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1679&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
)
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
)
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
)
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
)
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
)
</description>
    <dc:creator>Peter Coppens</dc:creator>
    <dc:date>2008-10-03T14:28:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27019">
    <title>Trying to enlarge a background image</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27019</link>
    <description>FOP-0.95
Redhat Linux

I have a background image in the "region-body".  It looks great and
prints perfectly.

However, I just noticed that I want the background image to occupy more
space in the region-body (just make it bigger).
I do not see where I am able to specify the size of the image.  Do I
have to manipulate the .png/.jpg  outside of FOP  or can I set the
height/width inside FOP and then it will automatically resize the image?



Jeff 

</description>
    <dc:creator>Steffanina, Jeff</dc:creator>
    <dc:date>2008-10-03T14:25:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27018">
    <title>Re: pdf-image extension problems</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27018</link>
    <description>
Hi, Jeremias tells me that he is on holidays !
I have no solution for you but you can check that: 

- The pdf to include has a version lower or equal than 1.4 (Acrobat 5.x)
because I think that FOP creates a pdf with a version equal to 1.4

- The pdf to include is not bigger that the available space.
Don't forget that you have maybe margin in your fo:simple-page-master

- If your pdf has several page, I have done a block for each page.
 for example :
&lt;fo:block break-before="page"&gt;
   &lt;fo:external-graphic src="Part21.pdf#page=3"/&gt;
&lt;/fo:block&gt; 

It was the same problem with Antenna House.

In fact, I have in the xml, the number of page and I have done a loop.




Peter Coppens wrote:

</description>
    <dc:creator>Frederic W</dc:creator>
    <dc:date>2008-10-03T14:04:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27017">
    <title>Re: Upgrade 0.20.5 to 0.95: all texts are shifted to top!</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27017</link>
    <description>Hi,

j1997 wrote:

I guess FOP 0.20.5 was taking the height of the biggest letter for the
line height, which is wrong; what’s supposed to happen if you put a word
like ‘jaguar’ in one cell, and ‘ToDo’ in the next cell? Should the
baselines be aligned or not?

Details can be found in section 4.5 of the XSL-FO specification [1] (who
said this section was scary?). In short, the line height is the sum of
text-altitude and text-depth [2]. Those are taken from the font metrics
and are general (i.e., apply to every glyph, even those that don’t hang
below the baseline). So the effect is what you noticed: if a word
doesn’t have any letter with a descender, it will look like it’s
shifted, whereas technically speaking it’s not.

[1] http://www.w3.org/TR/xsl11/#area-line
[2] http://www.w3.org/TR/xsl11/#text-depth


Not sure there is any other workaround, I’m afraid. If text-depth were
implemented you could use that, although that would also require to
tweak your stylesheet anyway. Maybe some particular value of the
line-stacking-strategy property may do the job, but this property
remains cryptic to me.




If that doesn’t really help, I hope this clarified FOP’s behaviour.
Vincent
</description>
    <dc:creator>Vincent Hennebert</dc:creator>
    <dc:date>2008-10-03T10:23:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27016">
    <title>RE: Trying to add a footer</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27016</link>
    <description>Lou,
That did the trick.....  THANK YOU for your help.
 

Jeff 


________________________________

From: Louis.Masters&lt; at &gt;log-net.com
[mailto:Louis.Masters&lt; at &gt;log-net.com] 
Sent: Thursday, October 02, 2008 12:03 PM
To: fop-users&lt; at &gt;xmlgraphics.apache.org
Subject: Re: Trying to add a footer



Did you forget to define your "footer" attribute set?  If you
don't need it, remove that from the block and you should be OK: 

A very simple example: 

        &lt;fo:static-content flow-name="region-after-first"&gt; 
                &lt;xsl:call-template name="poFooter"/&gt; 
        &lt;/fo:static-content&gt; 


        &lt;xsl:template name="poFooter"&gt; 
                &lt;fo:block space-before="1mm" font-size="7pt"
text-align="end"&gt; 
                        Page &lt;fo:page-number/&gt; of
&lt;fo:page-number-citation ref-id="lastpage"/&gt; 
                &lt;/fo:block&gt; 
                &lt;xsl:call-template name = "copyright"/&gt; 
        &lt;/xsl:template&gt; 

OK? 

-Lou 


</description>
    <dc:creator>Steffanina, Jeff</dc:creator>
    <dc:date>2008-10-03T01:23:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27015">
    <title>Re: Fop Options</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27015</link>
    <description>...

Well, 'gunk' may not be the right word, but at the bottom of the help
lines are shown these lines (after executing 'fop' with no arguments):

Oct 2, 2008 7:19:47 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: No input file specified
at org.apache.fop.cli.CommandLineOptions.checkSettings(CommandLineOptions.java:801)
at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:153)
at org.apache.fop.cli.Main.startFOP(Main.java:155)
at org.apache.fop.cli.Main.main(Main.java:202)

So, whatever you call it, it shouldn't be there.

...

I think I confused the outputs and didn't report correctly.  Sorry.


Thanks, Vincent, I will.

-Tom
</description>
    <dc:creator>Tom Browder</dc:creator>
    <dc:date>2008-10-03T01:09:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.text.xml.fop.user/27014">
    <title>Re: Fop Warnings</title>
    <link>http://permalink.gmane.org/gmane.text.xml.fop.user/27014</link>
    <description>

FWIW: You could also eliminate the need to use another tool to do the  
indenting, and obtain a similar effect by adding

&lt;xsl:output ... indent="yes" /&gt;

to the main stylesheet. With Saxon you'll get indented XML as a  
result by default (3 spaces added for each level). The number of  
spaces can be controlled via the saxon:indent-spaces extension  
attribute (on xsl:output)
Xalan offers xalan:indent-amount for control the amount of spaces to  
add for each level, which defaults to zero, so only adds linefeeds  
unless the extension attribute indicates otherwise.


Andreas
</description>
    <dc:creator>Andreas Delmelle</dc:creator>
    <dc:date>2008-10-02T21:40:56</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.text.xml.fop.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.text.xml.fop.user</link>
  </textinput>
</rdf:RDF>
