skip to main content
void Zip (string zipFilePath, object nodes)
 
Create a zip archive containing a list of files.
Parameters:
zipFilePath
Full pathname of the zip file.
nodes
The node set.
Creates a zip archive C:.zip with the contents defined in the node set.
<xsl:variable name="VarZipListAsXML">
  <wwzip:File source = "C:\some\directory\alpha.txt" zip-directory="directory" />
  <wwzip:File source = "C:\some\directory\beta.txt" zip-directory="directory" />
  <wwzip:File source = "C:\some\directory\gamma.txt" zip-directory="directory" />
  <wwzip:File source = "C:\some\directory\last\gamma.txt" zip-directory="directory\last" />
</xsl:variable>
<xsl:variable name = "VarZipList" select="wwzip:Zip('C:\some\archive.zip', msxsl:node-set($VarZipListAsXML)/*" />
Was this helpful?
Last modified date: 10/14/2020