Changes

Jump to navigation Jump to search
124 bytes removed ,  16:10, 24 June 2015
==archive:create==
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|archive:create|$entries as item(), $contents as item()*|xs:base64Binary}}<br />{{Func|archive:create|$entries as item(), $contents as item()*, $options as itemmap(xs:string, xs:string)|xs:base64Binary}}<br />
|-
| '''Summary'''
</pre>
The actual {{Code|$contents}} must be {{Code|xs:string}} or {{Code|xs:base64Binary}} items.<br/>
The {{Code|$options}} parameter contains archiving options, which can either be specified. The following options are available: * as children of an {{Code|<archive:options/>}} element:<pre class="brush:xmlwikitable sortable" width="100%"><archive:options>|- valign="top" <archive:format value! width="zip140"/>| Option <archive:algorithm value! width="deflate50%"/>| Description</archive:options>! Allowed</pre>! Default* as map, which contains all key/value pairs:<pre class|- valign="brush:xmltop">map | { "{Code|format": "zip", "algorithm": "deflate" }}</pre>| Archive format.Currently| {{Code|zip}}, the following combinations are supported (all others will be rejected):{{Code|gzip}}* | {{Code|zip}}: |- valign="top"| {{Code|algorithm}} may be | Archive algorithm (gzip only supports {{Code|storeddeflate}} or ).| {{Code|deflatestored}}* , {{Code|gzipdeflate}}: algorithm may be | {{Code|deflate}}|}
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu