An XML application is XML-based rather than HTML-based. XML is used to describe data, while HTML is mainly used to display data. XML is a common tool for transmitting and manipulating data in Web development. This type of application is generally used by portal administrators who are familiar with XML to Extensible Stylesheet Language Transformations (XSLT).
Creating a new XML application
Log in to Mobile Web Studio and select Build | Applications. Right-click in the detail view and select New Aggregated Application.
In the Application Builder, click the down arrow next to Add, and select XML Element. You see the XML Element Definition window.
Enter:
XML URL – the base URL of the XML source. This creates a new Common Gateway Interface (CGI) parameter. CGI parameters are discussed in “Using application parameters” on page 166.
Content XSLT – click Select to search for the XSL template that you want applied to this application’s content.
In the Find XSLT Template window, click Search.
From the Results list, highlight the appropriate XSLT template and click Select.
You return to the XML Element Definition window.
UI XSLT – click Select to search for and choose the XSL template (XSLT) that you want applied to the user interface.
In the Find XSLT Template window, click Search.
From the Results list, highlight the appropriate XSLT template and click Select.
You return to the XML Element Definition window.
XSD URL – XSD is another XML document that provides descriptive information about the structure of the main XML document. If the XML is generated from a backend system there is typically an auto generated XSD you can use.
If you enter an XSD schema file for the XML document, you can run the XML through the subsequent Split/Define/Filter grid windows.
When you are satisfied with your entries, click Next.
You see the Split window, which allows you to split the columns or rows in the table. See “Adding split rules”.
Click Next.
In the Define window, define how you want the records in the table to display. See “Defining record layout”.
Click Next.
In the Filter window, specify which rows and columns you want to filter out of the display. See “Adding filter rules”.
Click Next.
In the Location window, enter a name for the element in Element Name, and click Next.
In the Continuous Capture window, click Finish. You return to the Application Builder.
Save the application. See“Saving applications” for instructions.
See Chapter 9, “Building Pages” for
instructions on adding applications to pages.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |