w3pop.com :: ÍøÂçѧԺ :: APPML :: °¸ÀýÑо¿£ºAppML
AppML describes an application.
AppMLÃèÊöÁËÒ»¸öÓ¦ÓóÌÐò¡£
An AppML web service executes it.
AppMLÍøÂç·þÎñÆ÷Ö´ÐÐËü¡£
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> </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Óï¾ä¡£
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ÁÐ±í¡£