@@ -44,6 +44,10 @@ fo_simple-page-master.model =
44
44
fo_region-start? &
45
45
fo_region-end?) )
46
46
47
+ # AH Formatter allows empty fo:static-content.
48
+ fo_static-content.model =
49
+ ( ( (block.fo.list)* & (neutral.fo.list)* ) & (point.fo.list)* )
50
+
47
51
# AH Formatter allows fo:block-container to omit block FOs.
48
52
fo_block-container.model =
49
53
fo_marker*,
@@ -68,14 +72,18 @@ fo_table-cell.model =
68
72
# Antenna House extension elements
69
73
#
70
74
75
+ # <axf:document-info/>
71
76
# http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.document-info
72
77
axf_document-info =
78
+ ## Document information such as an author and title that can be embedded in the PDF
73
79
element axf:document-info {
80
+ ## Name of the document information
74
81
attribute name { ('document-title' | 'subject' | 'author' | 'author-title' |
75
82
'description-writer' | 'keywords' | 'copyright-status' |
76
83
'copyright-notice' | 'copyright-info-url' | 'xmp' | 'pagemode' |
77
84
'pagelayout' | 'hidetoolbar' | 'hidemenubar' | 'hidewindowui' |
78
85
'fitwindow' | 'centerwindow' | 'displaydoctitle' | 'openaction' )},
86
+ ## Value of the document information. Some information has constraints on the allowed values.
79
87
attribute value { text },
80
88
empty
81
89
}
@@ -85,30 +93,189 @@ axf_document-info =
85
93
#
86
94
87
95
#
88
- # Extensions to FO models and attlists
96
+ # Extensions to FO models
89
97
#
90
98
91
99
100
+
101
+ #
102
+ # Extensions to FO attlists
103
+ #
104
+
105
+ fo_simple-page-master.attlist &=
106
+ axf_bleed,
107
+ axf_bleed-top,
108
+ axf_bleed-bottom,
109
+ axf_bleed-left,
110
+ axf_bleed-right,
111
+ axf_crop-area-visibility,
112
+ axf_crop-offset,
113
+ axf_crop-offset-top,
114
+ axf_crop-offset-bottom,
115
+ axf_crop-offset-left,
116
+ axf_crop-offset-right,
117
+ axf_printer-marks,
118
+ axf_printer-marks-line-color,
119
+ axf_printer-marks-line-length,
120
+ axf_printer-marks-line-width,
121
+ axf_printer-marks-spine-width,
122
+ axf_printer-marks-zero-margin
123
+
124
+ fo_basic-link.attlist &=
125
+ axf_action-type,
126
+ text-decoration
127
+
92
128
fo_block.attlist &=
129
+ axf_destination-type,
93
130
width
94
131
95
- fo_basic-link .attlist &=
96
- axf_action -type
132
+ fo_block-container .attlist &=
133
+ axf_destination -type
97
134
98
135
#
99
136
# Extensions to property groups
100
137
#
138
+
101
139
common-border-padding-and-background-properties &=
102
140
axf_border-radius,
103
- axf_border-top-right-radius
141
+ axf_border-top-left-radius,
142
+ axf_border-top-right-radius,
143
+ axf_border-bottom-left-radius,
144
+ axf_border-bottom-right-radius
145
+
104
146
147
+ #
148
+ # Antenna House extension properties
149
+ #
150
+
151
+ # @axf:action-type
152
+ #
105
153
# http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.action-type
106
154
axf_action-type =
107
- ## Specifies the action of external link or form action. In CSS, form actions are invalid.
155
+ ## Specifies the action of external link or form action
108
156
attribute axf:action-type { 'gotor' | 'launch' | 'uri' | 'reset' | 'submit' | 'auto' }?
109
157
158
+ # @axf:border-radius
159
+ # @axf:border-top-left-radius
160
+ # @axf:border-top-right-radius
161
+ # @axf:border-bottom-left-radius
162
+ # @axf:border-bottom-right-radius
163
+ #
164
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.border-radius
110
165
axf_border-radius =
166
+ ## Radii of the rounded corners: [<length>|<percentage>] [<length>|<percentage>]?
111
167
attribute axf:border-radius { text }?
168
+ axf_border-top-left-radius =
169
+ ## Radii of the top-left corner: [<length>|<percentage>] [<length>|<percentage>]?
170
+ attribute axf:border-top-left-radius { text }?
112
171
axf_border-top-right-radius =
172
+ ## Radii of the top-right corner: [<length>|<percentage>] [<length>|<percentage>]?
113
173
attribute axf:border-top-right-radius { text }?
174
+ axf_border-bottom-left-radius =
175
+ ## Radii of the bottom-left corner: [<length>|<percentage>] [<length>|<percentage>]?
176
+ attribute axf:border-bottom-left-radius { text }?
177
+ axf_border-bottom-right-radius =
178
+ ## Radii of the bottom-right corner: [<length>|<percentage>] [<length>|<percentage>]?
179
+ attribute axf:border-bottom-right-radius { text }?
114
180
181
+ # @axf:bleed
182
+ # @axf:bleed-top
183
+ # @axf:bleed-bottom
184
+ # @axf:bleed-left
185
+ # @axf:bleed-right
186
+ #
187
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.bleed
188
+ axf_bleed =
189
+ ## Wdth of the bleed region: <length>
190
+ attribute axf:bleed { text }?
191
+ axf_bleed-top =
192
+ ## Wdth of the top bleed region: <length>
193
+ attribute axf:bleed-top { text }?
194
+ axf_bleed-bottom =
195
+ ## Wdth of the bottom bleed region: <length>
196
+ attribute axf:bleed-bottom { text }?
197
+ axf_bleed-left =
198
+ ## Wdth of the left bleed region: <length>
199
+ attribute axf:bleed-left { text }?
200
+ axf_bleed-right =
201
+ ## Wdth of the right bleed region: <length>
202
+ attribute axf:bleed-right { text }?
203
+
204
+ # @axf:crop-area-visibility
205
+ #
206
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.crop-area-visibility
207
+ axf_crop-area-visibility =
208
+ ## Whether to display the area beyond the finished page size
209
+ attribute axf:crop-area-visibility { 'hidden' | 'visible' }?
210
+
211
+ # @axf:crop-offset
212
+ # @axf:crop-offset-top
213
+ # @axf:crop-offset-bottom
214
+ # @axf:crop-offset-left
215
+ # @axf:crop-offset-right
216
+ #
217
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.crop-offset
218
+ axf_crop-offset =
219
+ ## Distance from the physical edges to the trim size of the output medium: <length>
220
+ attribute axf:crop-offset { text }?
221
+ axf_crop-offset-top =
222
+ ## Distance from the physical top edge to the trim size of the output medium: <length>
223
+ attribute axf:crop-offset-top { text }?
224
+ axf_crop-offset-bottom =
225
+ ## Distance from the physical bottom edge to the trim size of the output medium: <length>
226
+ attribute axf:crop-offset-bottom { text }?
227
+ axf_crop-offset-left =
228
+ ## Distance from the physical left edge to the trim size of the output medium: <length>
229
+ attribute axf:crop-offset-left { text }?
230
+ axf_crop-offset-right =
231
+ ## Distance from the physical right edge to the trim size of the output medium: <length>
232
+ attribute axf:crop-offset-right { text }?
233
+
234
+ # @axf:destination-type
235
+ #
236
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.destination-type
237
+ axf_destination-type =
238
+ ## The way a link opens in a link destination
239
+ attribute axf:destination-type { text }?
240
+
241
+ # @axf:printer-marks
242
+ #
243
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks
244
+ axf_printer-marks =
245
+ ## Printing marks, such as a crop mark
246
+ attribute axf:printer-marks { text }?
247
+
248
+ # @axf:printer-marks-line-color
249
+ #
250
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks-line-color
251
+ axf_printer-marks-line-color =
252
+ ## Line color of printer marks: <line> | auto
253
+ attribute axf:printer-marks-line-color { text }?
254
+
255
+ # @axf:printer-marks-line-length
256
+ #
257
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks-line-length
258
+ axf_printer-marks-line-length =
259
+ ## Line length of printer marks: <length> | auto
260
+ attribute axf:printer-marks-line-length { text }?
261
+
262
+ # @axf:printer-marks-line-width
263
+ # Line width of printer marks: <length> | auto
264
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks-line-width
265
+ axf_printer-marks-line-width =
266
+ ##
267
+ attribute axf:printer-marks-line-width { text }?
268
+
269
+ # @axf:printer-marks-zero-margin
270
+ #
271
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks-zero-margin
272
+ axf_printer-marks-zero-margin =
273
+ ## Margin between the page and the printer marks when bleed is 0: <length> | auto
274
+ attribute axf:printer-marks-zero-margin { text }?
275
+
276
+ # @axf:printer-marks-spine-width
277
+ #
278
+ # http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#axf.printer-marks-spine-width
279
+ axf_printer-marks-spine-width =
280
+ ## Spine width of the facing page: <length>
281
+ attribute axf:printer-marks-spine-width { text }?
0 commit comments