> Can you provide an example? I can't reproduce the problem. Thanks.

Of course. 
Shall/May I attach the whole big fo file here so you could just plug it
in? Here are some snippets.

The index table of contents has its own page-sequence-master as it is in
two columns. 
In the pdf output, there is just one question mark instead of a number.
I already simplyfied index to exclude problems with overflow or so. 

<fo:page-sequence language="de" hyphenate="false"
initial-page-number="3" master-reference="inhaltsverzeichnis">

<fo:static-content flow-name="toc-odd-after">
<fo:block padding-top="0.6cm" text-align="end">
        <fo:page-number/>
</fo:block>
</fo:static-content>

<fo:static-content flow-name="toc-even-after">
        <fo:block padding-top="0.6cm" text-align="start">
                <fo:page-number/>
        </fo:block>
</fo:static-content>

<fo:flow flow-name="xsl-region-body">

<fo:block space-after="1.5cm" font-size="20pt">Inhalt</fo:block>
        <fo:block>
                <fo:page-number-citation ref-id="N1005A"/> :
                   Bartschneider 
        </fo:block>
        <fo:block>
                <fo:page-number-citation ref-id="N1006A"/> :
                  Dampfbügeleisen 
        </fo:block>
        <fo:block>
                <fo:page-number-citation ref-id="N1007A"/> :
                ProStyle Bügeleisen 
        </fo:block>
[and so on]


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



<fo:page-sequence hyphenate="true" master-reference="content">
        [A long, long table with table-header, some of the table rows (those
containing the group name) carry the ids for the page-number-citation:]

<fo:table-row height="2.2cm" id="N1005A">
        <fo:table-cell border="0.2mm solid black" 
        display-align="center" number-columns-spanned="8">
        <fo:block start-indent="3.6cm" 
font-weight="bold"      font-size="24pt" display-align="center"
space-before="0.8cm">   Bartschneider 
</fo:block>
</fo:table-cell>
</fo:table-row>


[...]
</fo:page-sequence>










> 
> > Thanks again!
> > sonja
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Am Montag, den 12.09.2005, 14:37 +0200 schrieb Jeremias Maerki:
> > > On 12.09.2005 13:31:14 Sonja Löhr wrote:
> > > > 
> > > > I try learning  ...
> > > > 
> > > > Could you please just tell me whether I am on the right track for
> > > > configuration with the fop-trunk?
> > > > 
> > > > 
> > > > DefaultConfigurationBuilder confbuilder = new
> > > > DefaultConfigurationBuilder();
> > > > Configuration fileconf =
> > > > confbuilder.buildFromFile(ctx.getRealPath(CONFIG_FILE));
> > > 
> > > So far so good. :-)
> > > 
> > > > DefaultConfiguration conf = new DefaultConfiguration(fileconf);
> > > 
> > > I wouldn't do that. It doesn't help because....
> > > 
> > > > conf.setAttribute("strokeSVGText", false);
> > > 
> > > Doesn't exist anymore. There's an open task for me to revisit that.
> > > 
> > > > conf.setAttribute("fontBaseDir", ctx.getRealPath("/WEB-INF/fonts"));
> > > 
> > > fontBaseDir was introduced after FOP was branched from the main dev tree
> > > and since nobody implemented this for FOP Trunk, yet, this is not
> > > available. ATM you need to use absolute paths in the font configuration.
> > > Patches welcome. Ideally, the fonts will be loaded through the
> > > URIResolver.
> > > 
> > > > conf.setAttribute("baseDir", ctx.getRealPath("/"));
> > > 
> > > Cannot be specified through the config file right now.
> > > 
> > > The equivalent would be:
> > > 
> > > userAgent.setBaseURL(ctx.getRealPath("/"));
> > > 
> > > 
> > > > .....
> > > > Fop fop = new Fop(Fop.RENDER_PDF);
> > > > fop.getUserAgent().setUserConfig(conf);
> > > 
> > > that's ok but only the font setup and the PDF library are currently
> > > configured through the config file.
> > > 
> > > In the following post you will find an attachment with a sample config
> > > file. You will notice that the whole thing has changed slightly.
> > > http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200509.mbox/[EMAIL
> > >  PROTECTED]
> > > 
> > > > .....
> > > > 
> > > > or 
> > > 
> > > No, "and". :-)
> > > 
> > > > fop.getUserAgent().setBaseURL()
> > > > instead of specifying this inside the DefaultConfiguration?
> > > 
> > > Not instead. You need to do both.
> > > 
> > > > (Font basedir is not essential since it is under baseDir)
> > > 
> > > but relative paths for fonts are currently not possible, I'm afraid.
> > > 
> > > > 
> > > > Leaving now, I'll simply try tomorrow if no veto occurs ;-)
> > > 
> > > Veto? It's simply your time. You will see that there are still a few
> > > things to do to bring FOP Trunk up to the same level for everything. But
> > > it's good we get reminded this way. But I'll write the docs soon and I'm
> > > sure I will need to fix a few things while I'm doing that.
> > > 
> > > > Thanks in advance!
> > > > sonja
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Am Montag, den 12.09.2005, 12:12 +0200 schrieb Sonja Löhr:
> > > > > Thank you for the turbo-answer, Jeremias!
> > > > > 
> > > > > We wrote at the same time ...
> > > > > 
> > > > > I would be brave ;-) and change the code since it is really small and
> > > > > differs not much from what happens in FopServlet, I just have some In-
> > > > > and OutputStreams between but should come along with the javadoc for
> > > > > that. 
> > > > > 
> > > > > The only complex thing could be the configuration (with both 
> > > > > config-file
> > > > > and programmatically) - is that a great thing to change?
> > > > > If it is, I would just wait for the release and don't bother you with
> > > > > questions.
> > > > > 
> > > > > sonja
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Am Montag, den 12.09.2005, 11:57 +0200 schrieb Jeremias Maerki:
> > > > > > Sorry, Sonja, but a lot of changes have happened during the redesign
> > > > > > which break API compatibility. The packages and classes you listed 
> > > > > > don't
> > > > > > exist anymore. And the new API has not been documented, yet. This 
> > > > > > will
> > > > > > be done in the next two weeks and before the first preview release. 
> > > > > > In
> > > > > > the meantime, you can look at the embedding examples in
> > > > > > examples/embedding on how to embed FOP Trunk in a Java application.
> > > > > > 
> > > > > > If you prefer an API that works on both FOP 0.20.5 and FOP Trunk, I 
> > > > > > have
> > > > > > started a solution at 
> > > > > > http://www.jeremias-maerki.ch/dev/jaxg/index.html.
> > > > > > But either way, you will have to change your application once.
> > > > > > 
> > > > > > Also needless to say that FOP Trunk is unstable (alpha) as will be 
> > > > > > the
> > > > > > first preview release.
> > > > > > 
> > > > > > On 12.09.2005 11:40:50 Sonja Löhr wrote:
> > > > > > > Hi!
> > > > > > > 
> > > > > > > After inspecting the new compliance page (:-)) great 
> > > > > > > improvements!!), I
> > > > > > > finally downloaded the trunk and built it.
> > > > > > > Now my servlet code is missing several packages/classes :
> > > > > > > org.apache.fop.messaging
> > > > > > > org.apache.fop.configuration
> > > > > > > and classes in org.apache.fop.apps (Driver and Options)
> > > > > > > 
> > > > > > > Did I miss some sources or where can I find documentation about a 
> > > > > > > new
> > > > > > > way of programmatic configuration, logging and Servlet 
> > > > > > > integration?
> > > > > > > Sorry, I'm a bit lost in the developer's section of the fop site.
> > > > > > > 
> > > > > > > Thank you for some hints,
> > > > > > > I would love to use the new features!
> > > > > > > 
> > > > > > > sonja
> > > > > > 
> > > > > > 
> > > > > > Jeremias Maerki
> > > > > > 
> > > > > > 
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > > > 
> > > > -- 
> > > > Sonja Löhr <[EMAIL PROTECTED]>
> > > > 
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > > 
> > > 
> > > Jeremias Maerki
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > -- 
> > Sonja Löhr <[EMAIL PROTECTED]>
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Sonja Löhr <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to