< Day Day Up > |
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.getXMLSchema()Availability Dreamweaver 8. Description This function returns the schema tree for the specified XML file. Arguments schemaURI, {bRefresh}
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/Macromedia/dreamweaver /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}
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\myxsltdocument.xsl: var theXMLSource = MMXSLT.getXMLSourceURI("file:///c:/myxslt/myxsltdocument.xsl"); MMXSLT.launchXMLSourceDialog()Availability Dreamweaver 8. Description This function prompts the user to specify the XML source document that is associated with the current XSLT document. The user can choose either a local or remote reference to an XML document. Arguments {xsltfileURI, bUseTempForRemote, bAddSchemaReference}
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 launches the XML Source Document dialog box without specifying any values: MMXSLT.launchXMLSourceDialog() |
< Day Day Up > |