J?rg Matysiak wrote: > > I'm currently installing XXE Pro 3.6.2 on our webserver in > order to start it via Java WebStart. > > Is it possible to adjust the default saving options (codeset > etc.), so that the users do not have to adjust them theirselves? > > I found there is a configuration property "saveOptions" and I > think I should add it to any .xxe file. I tried to write my > own custom.xxe and I also tried to add it to some of the > standard .xxe files but none of that worked. >
[1] Save options may be specified in the configuration file associated to a given document type. If your users create documents using a custom document type of yours, simply add a saveOptions configuration element to the corresponding .xxe configuration file. See http://www.xmlmind.com/xmleditor/_distrib/doc/configure/saveOptions.html (Doing so will *not* work in customize.xxe, which does not parametrize the behavior of XXE for a given document type.) [2] The above method is the cleanest one, but is not an option when, for example, you want to force the encoding of save files created by XXE whatever their document types. In such case, you need to force some of the user preferences in the .jnlp Java Web Start deployment file. Let's take the encoding of the save files as an example. Let's suppose you want to force the encoding to be Windows-1250. This user preference is called "encoding" and is documented here: http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.dialog.PreferencesEditorDialog.html#saveOptions Notice: ``Preference key: encoding; type: any encoding supported by XXE; default: UTF-8.'' Therefore, you need to specify the command line option "-putpref encoding Windows-1250" to Java Web Start. (-putpref is document here http://www.xmlmind.com/xmleditor/_distrib/doc/help/command_line_usage.html) This may be done like this: <application-desc main-class="com.xmlmind.xmleditapp.start.WebStart"> <argument>-putpref</argument> <argument>encoding</argument> <argument>Windows-1250</argument> </application-desc> More information in the documentation of Java Web Start.

