Previewing Dynamic Pages

Top  Previous  Next

You can preview a dynamic page that contains XSL functions if you supply a XML data to the MoreMotion Application Studio.

Defining an XML File for Previewing

1.Select the page
2.Open the property editor if it is not already open
3.Switch to the Other Tab
4.Locate the "XML File for Preview" property
5.Enter the file name of the XML data that you prepared.
6.Press F9 to preview the page.

 

The actions taken by the MoreMotion Application Studio

1.It first compiles the page as an XSL Style Sheet and creates a file with extension xsl on the directory where the Page is located.
2.Afterwards it invokes the XSLT processor MSXML and passes the names of the created XSL file and the XML file defined in "XML File for Preview" property to it. The MSXML creates an HTML file as the result of the XSLT processing

 

The MoreMotion Application Studio calls the default internet browser to display the generated HTML file.

Warning!

The MoreMotion Application Studio generates the references to the sources (images, scripts) as absolute paths during previewing and therefore the generated XSL and HTML files are not suitable for publishing.