There are 5 kinds of statement in template. They are RS statement, RESOURCE statment, ATTACH statement, MAP statement and JAVA statement.
1. RS statement is used for reading articles or ORACLE datas by SQL. All statements can be nested in RS statement.
2. RESOURCE statement is used for reading attachments. All statements except ATTACH statement can be nested in RESOURCE statement.
3. ATTACH statement is used for reading attaches of current article. None statement can be nested in ATTACH statement.
4. MAP statement is used for reading list of topic. All statements can be nested in MAP statement except ATTACH statement.
5. You can write java code in JAVA statement. Template tags can be used in java code and none statement can be nested in JAVA statement.
Also,there are 4 kinds of tag in template. They are article tag, attachment
tag, global tag and RS tag.
1. Article tag must appears in article template or RS statement marked with topic or RESOURCE statement or ATTACH statement.
2. Attachment tag must appears in RESOURCE statement or ATTACH statement.
3. RS tag must appears in RS statement marked with sql.
4. Global tag can appears anywhere.
The scopes of statements & tags are:
1. All statements and tags are available for article template and page template.
2. Global tags can be also quoted in the output pathname of page template.