Please visit our sponsors !
The AppML Document
With AppML, the <appml> element defines an AppML
application.
The AppML Element
AppML uses an <appml> document to describe an AppML application. Inside
the <appml> document, the <database> element is used to
describe a connection to a database. Other elements, like the <htmlreport>
element and the <htmlform> element, are used to describe different parts of
the application.
<appml>
<database>
<connection>music_db</connection>
<sql>select title,artist,year from cd_catalog</sql>
</database>
</appml>
|
A view of the database content is displayed below:
TITLE |
ARTIST |
YEAR |
Empire Burlesque |
Bob Dylan |
1985 |
Hide your heart |
Bonnie Tyler |
1988 |
Greatest Hits |
Dolly Parton |
1982 |
AppML Sub Elements
The following sub elements can be used to add more information to the
application:
- title
- stylesheet
- database
- filters
- header
- footer
- htmlreport
- xmlreport
- htmllist
- htmledit
- htmlform
The Title Element
The AppML <title> element defines a title for the
application.
The title will be displayed in the browser caption, and as a default header
for HTML reports and other output.
The Stylesheet Element
The AppML <stylesheet> element defines a default stylesheet for the
application.
The Database Element
AppML uses an <appml> document to describe an AppML application. Inside
the AppML
document a <database> element describes the connection to a database:
<appml>
<database>
<connection>music_db</connection>
<sql>select title,artist,year from cd_catalog</sql>
</database>
</appml>
|
A "view" of the database content is displayed below:
TITLE |
ARTIST |
YEAR |
Empire Burlesque |
Bob Dylan |
1985 |
Hide your heart |
Bonnie Tyler |
1988 |
Greatest Hits |
Dolly Parton |
1982 |
The Filters Element
The AppML <filters> element provides a way to define query and order
by filters that can be changed by the user at run time.
The full syntax of this element is described in a later chapter.
The Header Element
The AppML <header> element is used to define an additional output that
will be displayed before the actual input form on a page.
Any HTML code may be included inside the <header> element
Example:
<appml>
<database>
<connection>music_db</connection>
<sql>select title,artist,year from cd_catalog</sql>
</database>
<header>
<h1>Product Sales for 1997</h1>
<p>Compiled by John Johnson</p>
</header>
</appml>
|
The Footer Element
The AppML <footer> element is used to define an additional output that
will be displayed after the actual input form on a page.
Any HTML code may be included inside the <footer> element
The HTMLReport Element
The AppML <htmlreport> element describes the elements of an HTML
report.
The full syntax of this element is described in a later chapter.
The XMLReport Element
The AppML <xmlreport> element describes the elements of an XML report.
The full syntax of this element is described in a later chapter.
The HTMLList Element
The AppML <htmllist> element describes the elements of an HTML List.
The full syntax of this element is described in a later chapter.
The HTMLEdit Element
The AppML <htmledit> element describes the elements of an HTML editable
HTML List.
The full syntax of this element is described in a later chapter.
The HTMLForm Element
The AppML <htmlform> element describes the elements of an HTML input form.
The full syntax of this element is described in a later chapter.
An XML Schema for AppML
If you have Internet Explorer, you can Click
Here to view the full XML Schema for an AppML document.
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|