logo

4.2. How to use < AppML >

发布时间 :2025-10-25 13:33:38 UTC

Page Views: 50 views

This section demonstrates how to create an application for < AppML > through the following four simple steps.

The next chapter will show you how to download < AppML > and start developing Web applications on your own computer.

4.2.1. 1.创建模型(Model)

Create a file using the following

<appml>

<datasource>
<database>
  <connection>Democonnection>
  <sql>SELECT CustomerName,ContactName,City,Country FROM Customerssql>
  <orderby>CustomerNameorderby>
database>
datasource>

<filters>
  <query>
  <field>CustomerNamefield>
  query>
filters>

appml>
   

Models (we recommend) save the file as Customers.xml in the subdirectory.

Model analysis

The < appml > tag defines the model.

The < datasource > tag defines the data source for the model.

The < database > tag defines the database.

The < connection > tag defines the link to the database.

< sql > tag definition data query

The < orderby > tag defines the default sort.

The < query > tag defines a legal query filter.

4.2.2. two。 Create a WEB page

In the first < AppML > app, create a HTML page:

Example





My First Web Application

Customer City Country
Alfreds Futterkiste Berlin Germany

尝试一下 »

4.2.3. 3. Add Styl

Add cascading styles to your web page when executing e < AppML > app:

Example









My First Web Application

Customer City Country
Alfreds Futterkiste Berlin Germany

尝试一下 »

4.2.4. 4. Add a script and then execute the application

Add a script to your web page to run < AppML > app:

Example









My First Web Application

Customer City Country
#CustomerName# #City# #Country#

尝试一下 »

4.2.5. Case analysis

The < AppML > library contains a large number of functions. These functions can be called from your web page.

Principles, Technologies, and Methods of Geographic Information Systems

 102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.