You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Adrian Cumiskey <ad...@gmail.com> on 2008/01/15 18:11:53 UTC

Rendering time configuration settings using fo:declarations

Hi all,

A thought occurred to me whilst implementing something and I thought I would share it with you..  I 
don't have time to implement this but maybe somebody else would like to pick up this idea/suggestion...

Basically, I was wondering if anyone thought it would be a useful feature to be able to provide 
renderer configuration settings within the fo:declarations section of an FO document?

These settings could resemble and override any user configuration settings that may have been set at 
startup time through the API or user configuration file (e.g. fop.xconf).  So the top of your FO 
document might look something like the following :-

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:declarations>
       <fox:strict-validation>true</fox:strict-validation>
       <fox:renderers>
          <fox:renderer mime="application/postscript">
          </fox:renderer>
          <fox:renderer mime="application/pdf">
          </fox:renderer>
	.....
       </fox:renderers>
    </fo:declarations>
    <fo:layout-master-set>
....
</fo:root>

Something like this shouldn't be too difficult to implement (any volunteers?) and I think it might 
provide quite a bit of value.  It would be important to remember that the lifetime of these settings 
would only remain within the rendering run of the particular document that is being processed and 
subsequent documents being processed would revert back to FOP's default startup time settings.

Adrian.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Rendering time configuration settings using fo:declarations

Posted by Chris Bowditch <bo...@hotmail.com>.
Adrian Cumiskey wrote:

<snip/>

> 
> Something like this shouldn't be too difficult to implement (any 
> volunteers?) and I think it might provide quite a bit of value.  It 
> would be important to remember that the lifetime of these settings would 
> only remain within the rendering run of the particular document that is 
> being processed and subsequent documents being processed would revert 
> back to FOP's default startup time settings.

Yes I think this would definitely be a useful feature :) A number of 
Renderer options such as ps-page-setup are implemented as extension 
elements which allows them to be changed on a document by document 
basis. Currently its not possible for options which are not implemented 
as extension elements which can be an annoying restriction in some projects.

I have no time to help with the implementation though!

Thanks,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Rendering time configuration settings using fo:declarations

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Jan 15, 2008, at 18:11, Adrian Cumiskey wrote:

Hi

> A thought occurred to me whilst implementing something and I  
> thought I would share it with you..  I don't have time to implement  
> this but maybe somebody else would like to pick up this idea/ 
> suggestion...

> Basically, I was wondering if anyone thought it would be a useful  
> feature to be able to provide renderer configuration settings  
> within the fo:declarations section of an FO document?
>

Splendid idea to post it here. I sure do hope it reaches the right  
person for the job.

> These settings could resemble and override any user configuration  
> settings that may have been set at startup time through the API or  
> user configuration file (e.g. fop.xconf).  So the top of your FO  
> document might look something like the following :-
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>    <fo:declarations>
>       <fox:strict-validation>true</fox:strict-validation>

Basically a cool idea, but I would not put it in the default  
extension namespace. Instead, we could reserve a special FOP-config  
namespace for it.
Definitely seems to have a lot of potential to be able to include the  
configurable settings at the XSLT stage, if desired.

Those using Saxon 8-SA, could then have that config file validated  
against the fop-configuration.xsd at runtime.


Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org