Function Reference

Zip

Create a zip archive containing a list of files.

Syntax:

wwzip:Zip($zipFilePath, $nodes)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

nodes

object

The node set.

Example:


<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)/*" />

ZipAdd

Add a list of files to a zip archive.

Syntax:

wwzip:ZipAdd($zipFilePath, $nodes)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

nodes

object

The node set.

Example:


<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)/*" />

ZipAddWithoutCompression

Add a list of files to a zip archive without compressing any files.

Syntax:

wwzip:ZipAddWithoutCompression($zipFilePath, $nodes)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

nodes

object

The node set.

Example:


<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)/*" />

ZipDirectory

Zip a directory and recursively include sub-directories without compressing any files.

Syntax:

wwzip:ZipDirectory($zipFilePath, $directoryPath)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

directoryPath

string

Full pathname of the directory.

Example:

<xsl:variable name="VarZipDirectory" select="wwzip:ZipDirectory('C:\some\archive.zip', 'C:\projects\myproject'" />

ZipDirectoryWithoutCompression

Zip a directory and recursively include sub-directories without compressing any files.

Syntax:

wwzip:ZipDirectoryWithoutCompression($zipFilePath, $directoryPath)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

directoryPath

string

Full pathname of the directory file.

Example:

<xsl:variable name="VarZipDirectory" select="wwzip:ZipDirectoryWithoutCompression('C:\some\archive.zip', 'C:\projects\myproject'" />

ZipExtract

Extract contents of a zip archive to a specified directory location.

Syntax:

wwzip:ZipExtract($zipFilePath, $targetDirectory)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

targetDirectory

string

Pathname of the target directory.

Example:


<xsl:variable name="VarZipExtract" select="wwzip:ZipExtract('C:\some\archive.zip', 'C:\projects\myproject'" />

ZipWithoutCompression

Create a zip archive containing a list of files without compressing any files.

Syntax:

wwzip:ZipWithoutCompression($zipFilePath, $nodes)

Parameters:

Name

Type

Description

zipFilePath

string

Full pathname of the zip file.

nodes

object

The nodes.

Example:


<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)/*" />

Last modified date: 08/12/2026