Previous Topic: Parameters

Next Topic: Migration Considerations


Document Type Definition

The following is a copy of the Document Type Definition (DTD) that controls the accepted syntax:

<?xml version="1.0" encoding="ebcdic-cp-us"?>
<!ELEMENT report (prompt*, title, subtitle?, text*, section+)>
<!ATTLIST report
   class CDATA #IMPLIED
   subclass CDATA #IMPLIED
   displayname CDATA #IMPLIED
>
<!ELEMENT prompt EMPTY>
<!ATTLIST prompt
   name CDATA #REQUIRED
   group CDATA #IMPLIED
>
<!ELEMENT section (title, text*, (chart | statement | table)+)>
<!ELEMENT chart (title?, (query | reference), footnote?)>
<!ATTLIST chart
   style (pie | bar | line | linebar | stackedbar) "bar"
   xlabels (all | ends | none) "ends"
   datalimit CDATA #IMPLIED
>
<!ELEMENT statement (#PCDATA | query | reference | title | parm)*>
<!ELEMENT table (title?, (query | reference), footnote?)>
<!ATTLIST table
   datalimit CDATA #IMPLIED
>
<!ELEMENT parm EMPTY>
<!ATTLIST parm
   name CDATA #REQUIRED
>
<!ELEMENT query (#PCDATA | parm | databasename | columns | popupinfo)* >
<!ATTLIST query
   summarise (crosstab | none) "none"
   translate (left | top | both | neither) "top"
   name CDATA #IMPLIED
   sort (asc | desc) "asc"
>
<!ELEMENT databasename EMPTY>
<!ELEMENT popupinfo EMPTY>
<!ATTLIST popupinfo
   text CDATA #REQUIRED
>
<!ELEMENT reference EMPTY>
<!ATTLIST reference
   query CDATA #REQUIRED
   columns CDATA #IMPLIED
>
<!ELEMENT subtitle (#PCDATA | parm)*>
<!ELEMENT text (#PCDATA | parm)>
<!ELEMENT title (#PCDATA | parm)>
<!ELEMENT footnote (#PCDATA | parm)>
>
<!ELEMENT columns EMPTY>
<!ATTLIST columns
   column1 CDATA #IMPLIED
   column2 CDATA #IMPLIED
   column3 CDATA #IMPLIED
   column4 CDATA #IMPLIED
   column5 CDATA #IMPLIED
   column6 CDATA #IMPLIED
   column7 CDATA #IMPLIED
   column8 CDATA #IMPLIED
   column9 CDATA #IMPLIED
>
<!ENTITY nbsp "nbsp">

Object Repetition

The special characters that control repetition of objects in a DTD are as follows:

*

Specifies that zero or more are required.

+

Specifies that one or more are required.

?

Specifies that zero or one is allowed.

| or none

Specifies exactly one.