Function Reference

Document

Writes the specified node set to a file at the location defined by path.

Syntax:

wwexsldoc:Document($input, $path)
wwexsldoc:Document($input, $path, $encoding)
wwexsldoc:Document($input, $path, $encoding, $method)
wwexsldoc:Document($input, $path, $encoding, $method, $version)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent, $omit_xml_declaration)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent, $omit_xml_declaration, $standalone)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent, $omit_xml_declaration, $standalone, $doctype_public, $doctype_system)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent, $omit_xml_declaration, $standalone, $doctype_public, $doctype_system, $cdata_section_elements)
wwexsldoc:Document($input, $path, $encoding, $method, $version, $indent, $omit_xml_declaration, $standalone, $doctype_public, $doctype_system, $cdata_section_elements, $media_type)

Overloads:

#

Parameters

1

input, path

2

input, path, encoding

3

input, path, encoding, method

4

input, path, encoding, method, version

5

input, path, encoding, method, version, indent

6

input, path, encoding, method, version, indent, omit_xml_declaration

7

input, path, encoding, method, version, indent, omit_xml_declaration, standalone

8

input, path, encoding, method, version, indent, omit_xml_declaration, standalone, doctype_public, doctype_system

9

input, path, encoding, method, version, indent, omit_xml_declaration, standalone, doctype_public, doctype_system, cdata_section_elements

10

input, path, encoding, method, version, indent, omit_xml_declaration, standalone, doctype_public, doctype_system, cdata_section_elements, media_type

Parameters:

Name

Type

Description

input

object

The input node set.

path

string

Full pathname of the file.

encoding

string

The encoding.

method

string

The method.

version

string

The version.

indent

string

Indent 'yes' or 'no'.

omit_xml_declaration

string

Omit XML declaration 'yes' or 'no'.

standalone

string

Standalone 'yes' or 'no'.

doctype_public

string

The doctype public.

doctype_system

string

The doctype system.

cdata_section_elements

string

The cdata section elements.

media_type

string

Type of the media.

Example:


<xsl:variable name="VarResultAsXML">
...
</xsl:variable>
<xsl:variable name = "VarResult" select="msxsl:node-set($VarResultAsXML)/*" />
<xsl:variable name = "VarWriteDocument" select="wwexsldoc:Document($VarResult, 'C:\badplacefor.xml')" />

LoadXHTML

Loads an XHTML file without resolving internal paths and validation DTDs.

Syntax:

wwexsldoc:LoadXHTML($uriAsString)

Parameters:

Name

Type

Description

uriAsString

string

The URI as string.

Returns:

XPathNodeIterator: A node set.

Example:


<xsl:variable name="VarXHTMLPage" select="wwexsldoc:LoadXHTML($VarXHTMLFilePath)" />

LoadXMLWithoutResolver

Loads an XML file without resolving internal paths and validation DTDs.

Syntax:

wwexsldoc:LoadXMLWithoutResolver($uriAsString)
wwexsldoc:LoadXMLWithoutResolver($uriAsString, $preserveSpace)

Parameters:

Name

Type

Description

uriAsString

string

The URI as string.

preserveSpace

bool

True to preserve space.

Returns:

XPathNodeIterator: A node set.

Example:


<xsl:variable name="VarPageTemplate" select="wwexsldoc:LoadXMLWithoutResolver($VarPathTemplatePath)" />

LoadXMLWithResolver

Loads an XML file while also resolving internal paths and validating DTDs.

Syntax:

wwexsldoc:LoadXMLWithResolver($uriAsString)
wwexsldoc:LoadXMLWithResolver($uriAsString, $preserveSpace)

Parameters:

Name

Type

Description

uriAsString

string

The URI as string.

preserveSpace

bool

True to preserve space.

Returns:

XPathNodeIterator: A node set.


MakeEmptyElement

Converts a non-empty XML node to an empty node.

Syntax:

wwexsldoc:MakeEmptyElement($input)

Parameters:

Name

Type

Description

input

object

The input node set.

Returns:

XPathNodeIterator: A node set containing a single empty node.

Example:

<img src="blue.jpg">
</img>

Last modified date: 08/12/2026