Adobe 38040334 - Dreamweaver CS3 User Manual page 273

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

MMXSLT.getXMLSchema()
Availability
Dreamweaver 8.
Description
This function returns the schema tree for the specified XML file.
Arguments
schemaURI, {bRefresh}
• The
argument, which is required, is a string that is a reference to a local or remote XML file.
schemaURI
• The
argument, which is optional, is a Boolean value:
bRefresh
the copy of the schema from the XML schema cache. The default value is
Returns
A string that contains the XML schema tree.
Example
The following example gets the schema tree from the XML schema cache for menus.xml:
var theSchema = MMXSLT.getXMLSchema("file:///c:/Program Files/Adobe/¬
Adobe Dreamweaver CS3/Configuration/Menus/menus.xml"");
MMXSLT.getXMLSourceURI()
Availability
Dreamweaver 8.
Description
This function gets a reference to the XML source document associated with the current XSLT document.
Arguments
xsltfileURI, {bUseTempForRemote}
• The
argument is a string that is the local file URI that points to the location of the XSL file.
xsltfileURI
• The
bUseTempForRemote
temporary XML file (for example,
Settings/Temporary Internet Files/Content.IE5/GTSLQ9KZ/rss[1].xml
original XML file is remote (for example,
Returns
A string that contains the reference to the XML source document associated with the current XSLT document. If the
XML source reference is a remote reference, the function returns the downloaded filepath to the temporary location.
Example
The following example gets the reference to the XML source document associated with c:\myxslt\myxsltdoc-
ument.xsl:
var theXMLSource = MMXSLT.getXMLSourceURI("file:///c:/myxslt/myxsltdocument.xsl");
argument, which is optional, is a Boolean value:
file:///C:/Documents and Settings/username/Local
http://myHost/rssfeed.xml
forces a refresh of the schema;
true
.
false
returns a reference to the
true
) that is downloaded when the
) ;
returns an absolute reference.
false
DREAMWEAVER CS3
268
API Reference
returns
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents