当前位置: 首页 > 网络学院 > 客户端脚本教程 > APPML > 案例研究:AppML

APPML
AppML HTML 报告
AppML 过滤函数
AppML HTML 列表
AppML HTML 表单
AppML XML 报告

APPML 中的 案例研究:AppML


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 842 ::
收藏到网摘: n/a

AppML describes an application.
AppML描述了一个应用程序。

An AppML web service executes it.
AppML网络服务器执行它。


Describe the Application
描述应用程序

The purpose of AppML is to describe applications. AppML does this by describing elements. With AppML you can describe database elements, report elements, form elements, and many other elements.
AppML的目的是用于描述应用程序的。AppML通过描述元素来实现。通过AppML,你可以描述具体的数据库元素、报告元素、表单元素和很多其它的元素。

This is an example of an AppML description:
下面是一份关于AppML描述的案例:

<appml>
 <database>
<connection>northwind</connection> 
  <sql>SELECT CompanyName, Country FROM Customers</sql>
</database>
</appml>

In the example above, the <appml> tag is used to define an AppML document. The <connection> tag, inside the <database> tag, defines a named connection to a database, and the <sql> tag defines a standard SQL statement to select records from the database.
在上述案例中,<appml>标签是用于定义AppML文档的。<connection>标签嵌套在<database>标签中,定义了一个连接数据库的指定链接,<sql>标签是一个用于从数据库中选择记录的标准SQL语句。


Execute the Application
执行应用程序

To execute an AppML description you will need an AppML web service. The purpose of the web service is to execute the application based on the AppML description.
执行一个AppML描述,你需要用到AppML 网络服务。网络服务的目的是执行基于AppML描述的应用程序。

To access an AppML web service, you only have to link to it.
你只有通过连接数据库来访问AppML网络服务。

The following link: appml.asp?appname=customers&displaytype=report
下面这个链接:appml.asp?appname=customers&displaytype=report
links to "appml.asp" with a request to run an HTML report based on an AppML description named "customers.xml".
通过请求一个基于名为“customers.xml” 的AppML 描述来运行一个HTML报告。

The following link: appml.asp?appname=customers&displaytype=list
下面这个链接:appml.asp?appname=customers&displaytype=list
links to "appml.asp" with a request to run an HTML list, based on an AppML description named "customers.xml".
通过请求一个基于名为“customers.xml” 的AppML 描述来运行一个HTML列表。


评论 (0) All

登陆 | 还没注册?