📄 report.dtd
字号:
%fontdef;
>
<!--
Defines a sub band.
-->
<!ELEMENT band ( %itemelements; )>
<!ATTLIST band
height CDATA #IMPLIED
width CDATA #IMPLIED
x CDATA #REQUIRED
y CDATA #REQUIRED
%basicform;
%fontdef;
>
<!--
A simple label, static text that does not change, the text
contains a ResourceBundle key, which is looked up during the
report processing.
-->
<!ELEMENT resource-label (#PCDATA)>
<!ATTLIST resource-label
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
nullstring CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
resource-base CDATA #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!--
A text field. The field data contains a ResourceBundle key,
which is looked up during the report processing.
-->
<!ELEMENT resource-field EMPTY>
<!ATTLIST resource-field
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
fieldname CDATA #REQUIRED
nullstring CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
resource-base CDATA #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!--
A simple label, static text that does not change
-->
<!ELEMENT label (#PCDATA)>
<!ATTLIST label
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
nullstring CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!--
A simple text field
-->
<!ELEMENT string-field EMPTY>
<!ATTLIST string-field
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
fieldname CDATA #REQUIRED
nullstring CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!ELEMENT number-field EMPTY>
<!ATTLIST number-field
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
format CDATA #IMPLIED
fieldname CDATA #REQUIRED
nullstring CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!ELEMENT date-field EMPTY>
<!ATTLIST date-field
height CDATA #REQUIRED
%basicform;
%position;
%fontdef;
format CDATA #IMPLIED
fieldname CDATA #REQUIRED
dynamic (%boolean;) #IMPLIED
nullstring CDATA #IMPLIED
trim-text-content (%boolean;) #IMPLIED
reserved-literal CDATA #IMPLIED
>
<!--
The image reference links an external image into the report.
-->
<!ELEMENT imageref EMPTY>
<!ATTLIST imageref
%position;
src CDATA #REQUIRED
height CDATA #REQUIRED
name CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
scale (%boolean;) #IMPLIED
keepAspectRatio (%boolean;) #IMPLIED
>
<!--
The image reference links an external image into the report. This element expects an
Graphics2D-Object in the datasource.
-->
<!ELEMENT image-field EMPTY>
<!ATTLIST image-field
%position;
fieldname CDATA #REQUIRED
height CDATA #REQUIRED
name CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
scale (%boolean;) #IMPLIED
keepAspectRatio (%boolean;) #IMPLIED
>
<!--
Not yet complete, may change ...
Field may not be dynamic, as drawables have no content size
-->
<!ELEMENT drawable-field EMPTY>
<!ATTLIST drawable-field
%position;
fieldname CDATA #REQUIRED
height CDATA #REQUIRED
name CDATA #IMPLIED
>
<!--
The image reference links an external image into the report. This element expects an
URL or URL-String in the datasource.
-->
<!ELEMENT imageurl-field EMPTY>
<!ATTLIST imageurl-field
%position;
height CDATA #REQUIRED
fieldname CDATA #REQUIRED
name CDATA #IMPLIED
dynamic (%boolean;) #IMPLIED
scale (%boolean;) #IMPLIED
keepAspectRatio (%boolean;) #IMPLIED
dynamic (%boolean;) #IMPLIED
>
<!--
Shapes
-->
<!ELEMENT line EMPTY>
<!ATTLIST line
x1 CDATA #REQUIRED
y1 CDATA #REQUIRED
x2 CDATA #REQUIRED
y2 CDATA #REQUIRED
color CDATA #IMPLIED
name CDATA #IMPLIED
weight CDATA #IMPLIED
>
<!--
The rectangle is a filled rectangular area. No outline is drawn.
-->
<!ELEMENT rectangle EMPTY>
<!ATTLIST rectangle
%position;
%basicform;
height CDATA #REQUIRED
draw (%boolean;) #IMPLIED
fill (%boolean;) #IMPLIED
weight CDATA #IMPLIED
scale (%boolean;) #IMPLIED
keepAspectRatio (%boolean;) #IMPLIED
>
<!--
A generic shape field. The shape is defined in the DataRow.
-->
<!ELEMENT shape-field EMPTY>
<!ATTLIST shape-field
%position;
%basicform;
height CDATA #REQUIRED
fieldname CDATA #REQUIRED
dynamic (%boolean;) #IMPLIED
draw (%boolean;) #IMPLIED
fill (%boolean;) #IMPLIED
weight CDATA #IMPLIED
>
<!--
Functions are defined in a function library.
Every referenced function has to be defined in the
library in order to be loaded and executed correctly.
-->
<!ELEMENT functions (function | expression | data-ref | property-ref)*>
<!--
A data reference is used to validate the table model against
the declared format of the datasource. It simply checks that
all fields declared are present and are assignable from the
given type.
The attribute class is used to validate the data models objects.
This function uses TableModel.getColumnClass() to query the
table models data types. If the tablemodel returns java.lang.Object
no check is done, java.lang.Object is considered as an indicator
that the table model does not know about it's internal data
structure.
The data-reference was never implemented and will not be implemented
in future releases.
-->
<!ELEMENT data-ref EMPTY>
<!ATTLIST data-ref
name CDATA #REQUIRED
class CDATA #IMPLIED
>
<!--
A reference to a report property. This property is predefined here and can be accessed
as any datasource. The value defaults to null if no more data is given. The encoding parameter
defaults to "text", "serialized-base64" is implemented later to allow serialized objects
as value for the property.
-->
<!ELEMENT property-ref (#PCDATA)>
<!ATTLIST property-ref
name CDATA #REQUIRED
encoding CDATA #IMPLIED
>
<!--
A defined function has a valid implementing class that implement
the org.jfree.report.function.Function interface. Functions have access to the datarow and
can access other functions or expressions or the datasource. Functions are statefull and maintain
their state during the report generation. For stateless userdefined computations consider using
an expression instead of functions, as expression are cheaper to compute and maintain when using
huge reports.
Function parameters are given by propery elements. For visual
editing, function must obey to the java-beans rules (use get*/set*
methods, perhaps provide beaninfo and so on)
The deplevel attribute can be used to priorize the functions. Functions with an higher depencylevel
are executed before any function with lower depency levels. Depencylevels lower than 0 are not allowed.
-->
<!ELEMENT function (properties?)>
<!ATTLIST function
class CDATA #REQUIRED
name CDATA #REQUIRED
deplevel CDATA #IMPLIED
>
<!--
An expression is a stateless userdefined function. It can access the datarow and the reportproperties
to perform its task. Using the datarow an expression has access to the datasource and other functions
and expressions.
Expression parameters are given by propery elements. For visual
editing, Expressions must obey to the java-beans rules (use get*/set*
methods, perhaps provide beaninfo and so on)
The deplevel attribute can be used to priorize the functions. Functions with an higher depencylevel
are executed before any function with lower depency levels. Depencylevels lower than 0 are not allowed.
-->
<!ELEMENT expression (properties?)>
<!ATTLIST expression
class CDATA #REQUIRED
name CDATA #REQUIRED
deplevel CDATA #IMPLIED
>
<!--
Defines a set of properties for a function.
-->
<!ELEMENT properties (property*)>
<!--
A single property, a name - value pair.
-->
<!ELEMENT property (#PCDATA)>
<!ATTLIST property
name CDATA #REQUIRED
encoding CDATA #IMPLIED
>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -