skip to main content
Advanced Customizations, Overrides, and Extensions » ePublisher Platform XSLT Extensions » ZipExtension » void ZipWithoutCompression (string zipFilePath, object nodes)
void ZipWithoutCompression (string zipFilePath, object nodes)
 
Create a zip archive containing a list of files without compressing any files.
Parameters:
zipFilePath
Full pathname of the zip file.
nodes
The nodes.
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:ZipWithoutCompression('C:\some\archive.zip', msxsl:node-set($VarZipListAsXML)/*" />
 
Was this helpful?
Last modified date: 10/14/2020