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