ePublisher Platform XSLT Extensions
 
void ZipAdd (string zipFilePath, object nodes)
 
Add a list of files to a zip archive.
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:ZipAdd('C:\some\archive.zip', msxsl:node-set($VarZipListAsXML)/*" />