ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML °¸Àý˵Ã÷

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

APPML
AppML ¼ò½é
AppML °¸Àý
AppML °¸Àý˵Ã÷
AppML ÍøÂç·þÎñ
°¸ÀýÑо¿¼ò½é
°¸ÀýÑо¿£ºÊý¾Ý¿â
°¸ÀýÑо¿£ºAppML
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºHTML ±..
°¸ÀýÑо¿£ºÄ¿Â¼
°¸ÀýÑо¿£º²úÆ·
°¸ÀýÑо¿£ºÍÐÔËÈË
°¸ÀýÑо¿£º¹©Ó¦ÉÌ
°¸ÀýÑо¿£º¿Í»§
°¸ÀýÑо¿£º¹ÍÔ±
°¸ÀýÑо¿£ºÓ¦ÓóÌ..
°¸ÀýÑо¿£ºÏÂÔØ
AppML FAQ
AppML Îĵµ
AppML Êý¾Ý¿âÔªËØ

AppML °¸Àý˵Ã÷


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:2709 :: ::

This chapter explains the main parts of the AppML description from the previous chapter.
ÕâÕ½«½²ÊöÀ´×ÔÓÚǰһÕµÄAppMLÃèÊöµÄÖ÷Òª²¿·Ö¡£


AppML Example
AppML°¸Àý

The XML file below is the AppML description from the previous chapter:
ÏÂÃæµÄXMLÎļþÊÇǰһÕ¹ØÓÚAppMLµÄÃèÊö£º

<appml>
<title>CUSTOMERS</title>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>
Select CompanyName, City, Country from Customers
</sql>
</database>
<filters>
<query>
<field>CompanyName</field>
</query>
</filters>
<htmlform />
<htmllist />
<htmlreport />
</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