beautypg.com

Xslt functions, Mmxslt.getxml() – Adobe Dreamweaver API Reference CS5 User Manual

Page 306

background image

301

DREAMWEAVER API REFERENCE

Document

Last updated 8/27/2013

Description
This function specifies that the values that

dom.nodeToOffsets()

and

dom.getSelection()

return. These are used

by

dom.offsetsToNode()

and

dom.setSelection()

and should be offsets into the translated source (the HTML

that is contained in the DOM after a translator runs), not the untranslated source.

Note: This function is relevant only in Property inspector files.

Arguments
bUseTranslatedSource

The bUseTranslatedSource argument is a Boolean value:

true

if the function uses offsets into the translated source;

false

if the function uses the untranslated source.

The default value of the argument is

false

. Dreamweaver automatically uses the untranslated source for

subsequent calls to

dw.getSelection()

,

dw.setSelection()

,

dw.nodeToOffsets()

, and

dw.offsetsToNode()

when the script that calls

dw.useTranslatedSource()

finishes executing, if

dw.useTranslatedSource()

is not explicitly called with an argument of

false

before then.

Returns
Nothing.

XSLT functions

XSLT functions deal with XML files. These functions get information about XML documents, including the schema
tree or the reference to an XML document, and prompt the user to specify the XML document associated with the
current XSLT document.

MMXSLT.getXML()

Availability
Dreamweaver CS3.

Description
Gets an XML source string for an XML file.

Arguments
xmlSourceURI

A string representing a URI to an XML file. It can be absolute (http or https), site relative, or doc relative.

Returns
A string containing the contents of the XML file.

Example

var xmlSource = MMXSLT.getXML(this.fileDataSetURL);