w3pop.com :: ÍøÂçѧԺ :: APPML :: AppML Îĵµ
The <appml> element defines an AppML description.
<appml>ÔªËØ¶¨ÒåÁËÒ»¸ö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£©´æ´¢¡£
Inside the <appml> element, there is a mandatory <database> element that contains information about the database connection, and other elements, like <htmlreport> and <htmlform>, that is used to describe different parts of the application.
ÔÚ<appml>ÔªËØÄÚ£¬ÓÐÒ»¸ö°üº¬Êý¾Ý¿âÁ´½ÓÒÔ¼°ÆäËüÖîÈç<htmlreport> ºÍ <htmlform>ÕâÑùµÄÔªËØ£¬ÓÃÓÚÃèÊöÓ¦ÓóÌÐòÖв»Í¬µÄ²¿·Ö¡£
Below is an example of a very simple AppML description:
ÏÂÃæÊǷdz£¼òµ¥µÄ¹ØÓÚAppMLÃèÊöµÄ°¸Àý£º
<?xml version="1.0" ?> <appml> <database> <htmlreport/> </appml> |
View the output produced by the AppML HTML Report Service
²é¿´ÓÉAppML HTML ±¨¸æ·þÎñÊä³öµÄ½á¹û
View the XML source file
²é¿´XML Ô´Îļþ
The <appml> element may have the following attributes:
<appml>ÔªËØ¿ÉÒÔ°üº¬ÏÂÃæµÄÊôÐÔ£º
| Attribute ÊôÐÔ |
Value Öµ |
Description ÃèÊö |
|---|---|---|
| security | usergroup | Defines which user group that will have access to the application ¶¨ÒåÁË·ÃÎÊÓ¦ÓóÌÐòµÄÓû§Èº |
The <appml> element may have the following child elements:
<appml>ÔªËØ¿ÉÒÔ°üº¬ÏÂÁÐ×ÓÔªËØ£º
| Element ÔªËØ |
Description ÃèÊö |
|---|---|
| database | Contains information about the database connection ǶÌ×ÁËÊý¾Ý¿âÁ¬½ÓµÄÐÅÏ¢ |
| filters | Contains the fields the user can query and sort by at runtime ǶÌ×ÁËÓû§²éѯºÍ·ÖÀàµÄ×Ö¶ÎÐÅÏ¢ |
| footer | Defines a footer that will be displayed after the output on the page ¶¨ÒåÁËÔÚÒ³Ãæ½á¹ûÊä³öÖ®ºó²úÉúµÄÒ³½ÅÐÅÏ¢ |
| header | Defines a header that will be displayed before the output on the page ¶¨ÒåÁËÔÚÒ³Ãæ½á¹ûÊä³ö֮ǰ²úÉúµÄҳüÐÅÏ¢ |
| htmlform | Contains the elements of an HTML form ǶÌ×ÁËHTML±íµ¥ÔªËØ |
| htmllist | Contains the elements of an HTML list ǶÌ×ÁËHTML ÁбíÔªËØ |
| htmlreport | Contains the elements of an HTML report ǶÌ×ÁËHTML ±¨¸æÔªËØ |
| stylesheet | Defines a default stylesheet for the application ΪӦÓóÌÐò¶¨ÒåÁËÒ»¸öĬÈϵÄÑùʽ±í |
| title | Defines a default title (browser caption) for the application ΪӦÓóÌÐò¶¨ÒåÁËÒ»¸öĬÈϵıêÌ⣨ä¯ÀÀÆ÷±êÌ⣩ |
| xmlreport | Contains the elements of an XML report ǶÌ×ÁËÒ»¸öXML±¨¸æÔªËØ |
ÆÀÂÛ (0)
All