Polly,

You are not the first, nor will you be the last, to be thrown by this. 
 All of the work of the Options object is done in the constructor.  You 
don't have to do anything more with it.  It sets up a lot of static 
data, accessible by static methods, in a Configuration class.  Have a 
look at org.apache.fop.configuration.Configuration for the access 
methods.  Look at the example config.xml and userconfig.xml in 
xml-fop/conf to see what sort of data is stored in there.

Hmm....  This seems to crop up a bit.  Maybe something like a static 
Options.configure() would be less confusing for an essentially static 
operation.

Peter

Polly Tsang wrote:

> Hi all,
>
> How can I use userconfig in embedding servlet programs?
>
> I don't understand the following 2 statements that included in 
> xml.apache.org web page. Could someone give a brief sample code about 
> this?
>
>     userConfigFile = new File(userConfig);
>    options = new Options(userConfigFile);
>
> Thanks you so much!!!
>
> Regards,
> Polly
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>



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

Reply via email to