Specifies the format a form will be saved in. An XFDL form may be saved as XFDL compressed or uncompressed formats.
The format works as follows:
<saveformat>MIME type</saveformat>
Parameter | Type | Description |
---|---|---|
MIME type | application/vnd.xfdl | use XFDL format |
application/vnd.xfdl;content-encoding="base64-gzip" | use compressed XFDL format |
action, button, cell, page global, form global
This example shows how to use saveformat in a save button:
<button sid="save_button">
<type>saveas</type>
<saveformat>application/application/vnd.xfdl</saveformat>
</button>
When a user clicks this button, the form will be converted to XFDL format and saved to the user's drive.
This example shows how to use saveformat as a form global characteristic.
<?xml version="1.0"?>
<XFDL xmlns="http://www.ibm.com/xmlns/prod/XFDL/8.0"
xmlns:xfdl="http://www.ibm.com/xmlns/prod/XFDL/8.0"
xmlns:xforms="http://www.w3.org/2002/xforms">
<globalpage sid="global">
<global sid="global">
<bgcolor>ivory</bgcolor>
<saveformat>application/vnd.xfdl</saveformat>
</global>
</globalpage>
<page sid="page_1">
...
Any time a user saves this form, it will be saved in XFDL format.