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 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
Parameters:
Name | Type | Description |
|---|---|---|
|
| The input node set. |
|
| Full pathname of the file. |
|
| The encoding. |
|
| The method. |
|
| The version. |
|
| Indent 'yes' or 'no'. |
|
| Omit XML declaration 'yes' or 'no'. |
|
| Standalone 'yes' or 'no'. |
|
| The doctype public. |
|
| The doctype system. |
|
| The cdata section elements. |
|
| 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 |
|---|---|---|
|
| 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 |
|---|---|---|
|
| The URI as string. |
|
| 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 |
|---|---|---|
|
| The URI as string. |
|
| 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 |
|---|---|---|
|
| The input node set. |
Returns:
XPathNodeIterator: A node set containing a single empty node.
Example:
<img src="blue.jpg">
</img>