w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML °¸Àý˵Ã÷
This chapter explains the main parts of the AppML description from the previous chapter.
ÕâÕ½«½²ÊöÀ´×ÔÓÚǰһÕµÄAppMLÃèÊöµÄÖ÷Òª²¿·Ö¡£
The XML file below is the AppML description from the previous chapter:
ÏÂÃæµÄXMLÎļþÊÇǰһÕ¹ØÓÚAppMLµÄÃèÊö£º
<appml> <title>CUSTOMERS</title> <database> <filters> <htmlform /> </appml> |
An AppML description always starts with <appml> and ends with </appml>. The description must be saved as an XML file (.xml).
Ò»¸öÍêÕûµÄAppMLÃèÊöͨ³£ÒÔ<appml>¿ªÊ¼£¬ÒÔ</appml>½áÊø¡£¸ÃÃèÊö±ØÐëÒÔXMLÎļþ£¨.xml£©´æ´¢¡£
The <title> element defines a default title for the application.
<title>ÔªËØÎªÓ¦ÓóÌÐò¶¨ÒåÁËÒ»¸öĬÈϵıêÌâ¡£
The <database> element contains information about the database connection.
<database>ÔªËØ°üº¬Á˹ØÓÚÊý¾Ý¿âÁ´½ÓµÄÐÅÏ¢¡£
The <filters> element defines a search function for the application.
<filters>ÔªËØÎªÓ¦ÓóÌÐò¶¨ÒåÁËÒ»¸öËÑË÷º¯Êý¡£
The <htmlform /> element defines support for a standard HTML input form.
<htmlform />ÔªËØ¶¨ÒåÁ˶Աê×¼µÄHTMLÊäÈë±íµ¥µÄÖ§³Ö¡£
The <htmllist /> element defines support for a standard HTML list.
<htmllist />ÔªËØ¶¨ÒåÁ˶Աê×¼HTMLÁбíµÄÖ§³Ö¡£
The <htmlreport /> element defines support for a standard HTML report.
<htmlreport />ÔªËØ¶¨ÒåÁ˶Աê×¼HTML±¨¸æµÄÖ§³Ö¡£
With AppML you can also define your own HTML forms, HTML lists, and HTML reports, to make your AppML applications look and function exactly the way you want.
ͨ¹ýAppML£¬ÄãÒ²¿ÉÒÔ¶¨ÒåÄã×Ô¼ºµÄHTML±íµ¥£¬HTMLÁбíºÍHTML±¨¸æ£¬´Ó¶øÊ¹ÄãµÄAppMLÓ¦ÓóÌÐò·ûºÏÄãËùÆÚÍûµÄÍâ¹ÛºÍ¹¦ÄÜ¡£
Note: Each element in an AppML description will be explained in detail in the AppML case study and in the AppML reference.
×¢Ò⣺ÿ¸öAppMLÃèÊöÔªËØ¶¼½«ÔÚAppML°¸ÀýѧϰºÍAppML²Î¿¼ÖÐ×÷Ïêϸ½âÊÍ¡£
ÆÀÂÛ (0)
All