Changes

Jump to navigation Jump to search
772 bytes added ,  21:39, 28 May 2012
|-
| '''Summary'''
|Creates a new ZIP archive from the specified entries and contents.<br/>The {{Code|$entries}} descriptors contain meta information required to create new ZIP entries. Beside the mandatory entry name, which is specified in a text node, further optional attributes can be specified, which contain the :* {{Code|last-modified}}: timestamp, specified as xs:dateTime (default: current time)* {{Code|compression -level and }}: 0-9, 0 = uncompressed (default: 8)* {{Code|encoding of }}: for textual entries. (default: UTF-8)An Exampleexample:
<pre class="brush:xml">
<entry last-modified='2011-11-11T11:11:11'
return file:write-binary('mp3.zip', $zip)</pre>
|}
 
==zip2:entries==
 
{|
|-
| width='90' | '''Signatures'''
|{{Func|zip2:entries|$zip as xs:base64Binary|element(entry)*}}<br />
|-
| '''Summary'''
|Returns the entry descriptors of the given zip archive, which all contain the following attributes:
* {{Code|last-modified}}: timestamp, formatted as xs:dateTime
* {{Code|size}}: original file size
* {{Code|compressed-size}}: compressed file size
An example:
<pre class="brush:xml">
<entry size"1840" last-modified="2009-03-20T03:30:32" compressed-size="672">
doc/index.html
</entry>
</pre>
|}
 
=Changelog=
 
The module was introduced with Version 7.3.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu