1 |
#?SuikaWikiConfig/2.0
|
2 |
|
3 |
ModuleSet:
|
4 |
@Name: XJDCM
|
5 |
@Version:
|
6 |
(Based on JIS X 4052:2000)
|
7 |
@Description:
|
8 |
This is XJDCM, an XML representation of JDCM
|
9 |
("Exchange format for Japanese documents with composition markup").
|
10 |
@ID: jdcm
|
11 |
@BaseURI:
|
12 |
data:,jdcm-dtd-module-
|
13 |
|
14 |
@Namespace:
|
15 |
@@Name:
|
16 |
urn:x-suika-fam-cx:markup:jis:x:4052:2000:
|
17 |
@@DefaultPrefix: jdcm
|
18 |
@@UsePrefix: 0
|
19 |
|
20 |
@Copyright: Wakaba <w@suika.fam.cx>
|
21 |
@RCSDate:
|
22 |
$Date: 2003/10/24 11:09:02 $
|
23 |
|
24 |
Datatype:
|
25 |
@Type:
|
26 |
@@Name: angle
|
27 |
@@XMLType: CDATA
|
28 |
@@Description:
|
29 |
<angle> := <number> "deg" / "0" [JIS X 4052:2000, 5.3.4]
|
30 |
|
31 |
@Type:
|
32 |
@@Name: borderlength
|
33 |
@@XMLType: CDATA
|
34 |
@@Description:
|
35 |
(<positive <number>> ("cm" / "mm" / "jpt" / "pt" / "q") / "0")
|
36 |
|
37 |
@Type:
|
38 |
@@Name: characters
|
39 |
@@XMLType: CDATA
|
40 |
@@Description:
|
41 |
%Character.datatype; *(WSP %Character.datatype;)
|
42 |
|
43 |
@Type:
|
44 |
@@Name: classes
|
45 |
@@XMLType: CDATA
|
46 |
|
47 |
@Type:
|
48 |
@@Name:
|
49 |
:ContentType
|
50 |
@@XMLType: CDATA
|
51 |
@@Description:
|
52 |
Internet Media Type [RFC 2046]
|
53 |
|
54 |
@Type:
|
55 |
@@Name: integer
|
56 |
@@XMLType: NMTOKEN
|
57 |
@@Description:
|
58 |
<integer> := 1*DIGIT [JIS X 4052:2000, 5.3.1]
|
59 |
|
60 |
@Type:
|
61 |
@@Name: length
|
62 |
@@XMLType: CDATA
|
63 |
@@Description:
|
64 |
<length> := <number> <unit> / "0" [JIS X 4052:2000, 5.3.2]
|
65 |
|
66 |
@Type:
|
67 |
@@Name:
|
68 |
:LanguageCode
|
69 |
@@XMLType: CDATA
|
70 |
@@Description: IETF Language Tag
|
71 |
|
72 |
@Type:
|
73 |
@@Name: LinkType
|
74 |
@@XMLType: (stylesheet|prev|next)
|
75 |
|
76 |
@Type:
|
77 |
@@Name: number
|
78 |
@@XMLType: CDATA
|
79 |
@@Description:
|
80 |
<number> := ["+" / "-"] *DIGIT ["." *DIGIT] [JIS X 4052:2000, 5.3.1]
|
81 |
|
82 |
@Type:
|
83 |
@@Name: percentage
|
84 |
@@XMLType: CDATA
|
85 |
@@Description:
|
86 |
<percentage> := <number> "%" / "0" [JIS X 4052:2000, 5.3.3]
|
87 |
|
88 |
@Type:
|
89 |
@@Name: position
|
90 |
@@XMLType: CDATA
|
91 |
@@Description:
|
92 |
isSubClassOf <length>;
|
93 |
position := <positive <integer>> "px" / "0";
|
94 |
[JIS X 4052:2000, 6.2 b) 1.2.3)]
|
95 |
|
96 |
@Type:
|
97 |
@@Name: positiveinteger
|
98 |
@@XMLType: CDATA
|
99 |
@@Description:
|
100 |
<positive <integer>>
|
101 |
|
102 |
@Type:
|
103 |
@@Name: StyleSheet
|
104 |
@@XMLType: CDATA
|
105 |
@@Description:
|
106 |
JIS X 4052:2000 style language (text/jss)
|
107 |
|
108 |
@Type:
|
109 |
@@Name: tablelength
|
110 |
@@XMLType: CDATA
|
111 |
@@Description:
|
112 |
tablelength := tablelengthnozero / "0"
|
113 |
[JIS X 4052:2000, 6.6 b) 2)]
|
114 |
|
115 |
@Type:
|
116 |
@@Name: tablelengthnozero
|
117 |
@@XMLType: CDATA
|
118 |
@@Description:
|
119 |
isSubClassOf <length>;
|
120 |
tablelengthnozero := <positive <number>>
|
121 |
("字" / "em" / "en" / "cm" / "mm" / "jpt" / "pt" / "q");
|
122 |
[JIS X 4052:2000, 6.6 b) 2)]
|
123 |
|
124 |
@Type:
|
125 |
@@Name: tablelengths
|
126 |
@@XMLType: CDATA
|
127 |
@@Description:
|
128 |
tablelength *(WSP tablelength) [JIS X 4052:2000, 6.11 b) 1)]
|
129 |
|
130 |
@Type:
|
131 |
@@Name:
|
132 |
:URI
|
133 |
@@XMLType: CDATA
|
134 |
@@Description: A URI Reference
|
135 |
|
136 |
@Type:
|
137 |
@@Name: 長さ
|
138 |
@@XMLType: CDATA
|
139 |
@@Description:
|
140 |
<長さ{横幅,縦幅}> := 幅 "," 幅
|
141 |
幅 := <positive <number>> ("mm" / "cm") [JIS X 4052:2000, 5.3.2]
|
142 |
|
143 |
Attribute:
|
144 |
@AttributeSet:
|
145 |
@@Name: subsetelement
|
146 |
@@Attribute:
|
147 |
@@@Name: "class"
|
148 |
@@@Type: classes
|
149 |
@@Attribute:
|
150 |
@@@Name: "id"
|
151 |
@@@Type: "ID"
|
152 |
@@Description:
|
153 |
Attributes for "文書中の要素の部分集合要素"
|
154 |
|
155 |
@AttributeSet:
|
156 |
@@Name: subbody
|
157 |
@@ref: subsetelement
|
158 |
@@Attribute:
|
159 |
@@@Name: "style"
|
160 |
@@@Type: StyleSheet
|
161 |
@@Description:
|
162 |
Attributes for body and its subset elements
|
163 |
|
164 |
@AttributeSet:
|
165 |
@@Name: align
|
166 |
@@Attribute:
|
167 |
@@@Name: "align"
|
168 |
@@@Type: "(行頭|行末|center|均等)"
|
169 |
@@@Default: "行頭"
|
170 |
|
171 |
@AttributeSet:
|
172 |
@@Name: cellpadding
|
173 |
@@Attribute:
|
174 |
@@@Name: "cellpadding"
|
175 |
@@@Type: tablelength
|
176 |
|
177 |
@AttributeSet:
|
178 |
@@Name: em
|
179 |
@@ref: subbody
|
180 |
|
181 |
@AttributeSet:
|
182 |
@@Name: hn
|
183 |
@@ref: subbody
|
184 |
|
185 |
@AttributeSet:
|
186 |
@@Name: 行そろえ
|
187 |
@@Attribute:
|
188 |
@@@Name: "行そろえ"
|
189 |
@@@Type: "(こま頭|こま中央|こま末|行均等)"
|
190 |
@@@Default: "こま中央"
|
191 |
|
192 |
@AttributeSet:
|
193 |
@@Name: td
|
194 |
@@ref: align
|
195 |
@@ref: cellpadding
|
196 |
@@Attribute:
|
197 |
@@@Name: "height"
|
198 |
@@@Type: tablelength
|
199 |
@@Attribute:
|
200 |
@@@Name: "width"
|
201 |
@@@Type: tablelength
|
202 |
@@Attribute:
|
203 |
@@@Name: "行こま合成"
|
204 |
@@@Type: positiveinteger
|
205 |
@@@Default: "1"
|
206 |
@@ref: 行そろえ
|
207 |
@@Attribute:
|
208 |
@@@Name: "列こま合成"
|
209 |
@@@Type: positiveinteger
|
210 |
@@@Default: "1"
|
211 |
@@ref: subbody
|
212 |
|
213 |
Module:
|
214 |
@Name: Compound
|
215 |
@ID: compound
|
216 |
|
217 |
@Element:
|
218 |
@@Name: sub
|
219 |
@@Content:
|
220 |
(
|
221 |
\#PCDATA
|
222 |
| $vertical-align
|
223 |
| span
|
224 |
| $character
|
225 |
)*
|
226 |
@@Attribute:
|
227 |
@@@ref: subbody
|
228 |
@Element:
|
229 |
@@Name: sup
|
230 |
@@Content:
|
231 |
(
|
232 |
\#PCDATA
|
233 |
| $vertical-align
|
234 |
| span
|
235 |
| $character
|
236 |
)*
|
237 |
@@Attribute:
|
238 |
@@@ref: subbody
|
239 |
|
240 |
@Element:
|
241 |
@@Name: mlg
|
242 |
@@Content:
|
243 |
(
|
244 |
\#PCDATA
|
245 |
| $inoneline-noem
|
246 |
)*
|
247 |
@@Attribute:
|
248 |
@@@ref: subbody
|
249 |
@@Description:
|
250 |
Multiline gloss (割注), [JIS X 4052:2000, 6.16]
|
251 |
|
252 |
@Element:
|
253 |
@@Name: yoko
|
254 |
@@Content:
|
255 |
(
|
256 |
\#PCDATA
|
257 |
| $inline-onedir-noem
|
258 |
)*
|
259 |
@@Attribute:
|
260 |
@@@ref: subbody
|
261 |
@@Description:
|
262 |
縦中横 [JIS X 4052:2000, 6.17]
|
263 |
|
264 |
@Element:
|
265 |
@@Name: tate
|
266 |
@@Content:
|
267 |
(
|
268 |
\#PCDATA
|
269 |
| tabset
|
270 |
$:Ruby
|
271 |
| $emphasis
|
272 |
| span
|
273 |
| br
|
274 |
| $character
|
275 |
)*
|
276 |
@@Attribute:
|
277 |
@@@ref: subbody
|
278 |
@@Description:
|
279 |
欧文用文字の和字扱い [JIS X 4052:2000, 6.18]
|
280 |
|
281 |
@Element:
|
282 |
@@Name: ruby
|
283 |
@@Content:
|
284 |
(
|
285 |
(
|
286 |
rbc,
|
287 |
rtc,
|
288 |
rtc?
|
289 |
)
|
290 |
| (
|
291 |
rb,
|
292 |
rt
|
293 |
)
|
294 |
)
|
295 |
@@Attribute:
|
296 |
@@@ref: subbody
|
297 |
|
298 |
@Element:
|
299 |
@@Name: rbc
|
300 |
@@Content:
|
301 |
(
|
302 |
rb
|
303 |
)+
|
304 |
@@Attribute:
|
305 |
@@@ref: subbody
|
306 |
|
307 |
@Element:
|
308 |
@@Name: rtc
|
309 |
@@Content:
|
310 |
(
|
311 |
rt
|
312 |
)+
|
313 |
@@Attribute:
|
314 |
@@@ref: subbody
|
315 |
|
316 |
@Element:
|
317 |
@@Name: rb
|
318 |
@@Content:
|
319 |
(
|
320 |
\#PCDATA
|
321 |
| $inoneline
|
322 |
)*
|
323 |
@@Attribute:
|
324 |
@@@ref: subbody
|
325 |
|
326 |
@Element:
|
327 |
@@Name: rt
|
328 |
@@Content:
|
329 |
(
|
330 |
\#PCDATA
|
331 |
| $inoneline
|
332 |
)*
|
333 |
@@Attribute:
|
334 |
@@@Attribute:
|
335 |
@@@@Name: "rbspan"
|
336 |
@@@@Type: positiveinteger
|
337 |
@@@Default: "1"
|
338 |
@@@ref: subbody
|
339 |
|
340 |
Module:
|
341 |
@Name: Figure
|
342 |
@ID: figure
|
343 |
|
344 |
@Element:
|
345 |
@@Name: zu
|
346 |
@@Content: "EMPTY"
|
347 |
@@Attribute:
|
348 |
@@@Attribute:
|
349 |
@@@@Name: "src"
|
350 |
@@@@Type:
|
351 |
:URI
|
352 |
@@@@Default: #REQUIRED
|
353 |
@@@ref: subbody
|
354 |
@@Description:
|
355 |
Figure, photo, etc. with its margin, caption, note, etc.
|
356 |
[JIS X 4052:2000, 6.7]
|
357 |
|
358 |
Module:
|
359 |
@Name: Inline
|
360 |
@ID: inline
|
361 |
|
362 |
@Content:
|
363 |
@@ElementType: emphasis
|
364 |
@@Content:
|
365 |
(
|
366 |
\#PCDATA
|
367 |
| tabset
|
368 |
$:Ruby
|
369 |
| tate
|
370 |
| $inline-onedir-noem
|
371 |
| $emphasis
|
372 |
| br
|
373 |
)*
|
374 |
|
375 |
@Element:
|
376 |
@@Name: em
|
377 |
@@Content: $emphasis.content
|
378 |
@@Attribute:
|
379 |
@@@ref: em
|
380 |
|
381 |
@Element:
|
382 |
@@Name: strong
|
383 |
@@Content: $emphasis.content
|
384 |
@@Attribute:
|
385 |
@@@ref: em
|
386 |
|
387 |
@Element:
|
388 |
@@Name: u
|
389 |
@@Content: $emphasis.content
|
390 |
@@Attribute:
|
391 |
@@@ref: em
|
392 |
|
393 |
@Element:
|
394 |
@@Name: strike
|
395 |
@@Content: $emphasis.content
|
396 |
@@Attribute:
|
397 |
@@@ref: em
|
398 |
|
399 |
@Element:
|
400 |
@@Name: span
|
401 |
@@Content:
|
402 |
(
|
403 |
\#PCDATA
|
404 |
| $:Inline.mix
|
405 |
)*
|
406 |
@@Attribute:
|
407 |
@@@ref: subbody
|
408 |
|
409 |
Module:
|
410 |
@Name: Listing
|
411 |
@ID: list
|
412 |
|
413 |
@Element:
|
414 |
@@Name: dt
|
415 |
@@Content:
|
416 |
(
|
417 |
\#PCDATA
|
418 |
| $:Inline.mix
|
419 |
)*
|
420 |
@@Attribute:
|
421 |
@@@ref: subbody
|
422 |
|
423 |
@Element:
|
424 |
@@Name: dd
|
425 |
@@Content:
|
426 |
(
|
427 |
\#PCDATA
|
428 |
| $semiflow.mix
|
429 |
)*
|
430 |
@@Attribute:
|
431 |
@@@ref: subbody
|
432 |
|
433 |
@Element:
|
434 |
@@Name: dl
|
435 |
@@Content:
|
436 |
(
|
437 |
dt
|
438 |
| dd
|
439 |
)*
|
440 |
@@Attribute:
|
441 |
@@@ref: subbody
|
442 |
|
443 |
@Element:
|
444 |
@@Name: li
|
445 |
@@Content:
|
446 |
(
|
447 |
\#PCDATA
|
448 |
| $semiflow.mix
|
449 |
)*
|
450 |
@@Attribute:
|
451 |
@@@ref: subbody
|
452 |
|
453 |
@Element:
|
454 |
@@Name: ol
|
455 |
@@Content:
|
456 |
(
|
457 |
li
|
458 |
)*
|
459 |
@@Attribute:
|
460 |
@@@ref: subbody
|
461 |
|
462 |
@Element:
|
463 |
@@Name: ul
|
464 |
@@Content:
|
465 |
(
|
466 |
li
|
467 |
)*
|
468 |
@@Attribute:
|
469 |
@@@ref: subbody
|
470 |
|
471 |
Module:
|
472 |
@ID: struct
|
473 |
|
474 |
@Element:
|
475 |
@@Name: jdcm
|
476 |
@@Content:
|
477 |
(
|
478 |
head,
|
479 |
body
|
480 |
)
|
481 |
|
482 |
@Element:
|
483 |
@@Name: body
|
484 |
@@Content:
|
485 |
(
|
486 |
$:Block.mix
|
487 |
)*
|
488 |
@@Attribute:
|
489 |
@@@ref: subbody
|
490 |
|
491 |
@Element:
|
492 |
@@Name: style
|
493 |
@@Content:
|
494 |
(
|
495 |
\#PCDATA
|
496 |
)*
|
497 |
@@Attribute:
|
498 |
@@@Attribute:
|
499 |
@@@@Name: "type"
|
500 |
@@@@Type:
|
501 |
:ContentType
|
502 |
@@@@Default: #FIXED "text/jss"
|
503 |
@@@@Description: Required.
|
504 |
@@@ref: subsetelement
|
505 |
|
506 |
@Element:
|
507 |
@@Name: link
|
508 |
@@Content: "EMPTY"
|
509 |
@@Attribute:
|
510 |
@@@Attribute:
|
511 |
@@@@Name: "href"
|
512 |
@@@@Type:
|
513 |
:URI
|
514 |
@@@@Default: #REQUIRED
|
515 |
@@@Attribute:
|
516 |
@@@@Name: "rel"
|
517 |
@@@@Type: LinkType
|
518 |
@@@@Default: #REQUIRED
|
519 |
@@@Attribute:
|
520 |
@@@@Name: "type"
|
521 |
@@@@Type:
|
522 |
:ContentType
|
523 |
@@@@Description:
|
524 |
Required if @rel=stylesheet.
|
525 |
@@@ref: subsetelement
|
526 |
|
527 |
@Element:
|
528 |
@@Name: head
|
529 |
@@Content:
|
530 |
$:HeadOpts.mix
|
531 |
@@Attribute:
|
532 |
@@@ref: subsetelement
|
533 |
|
534 |
@Element:
|
535 |
@@Name: p
|
536 |
@@Content:
|
537 |
(
|
538 |
\#PCDATA
|
539 |
| $:Inline.mix
|
540 |
| zu
|
541 |
)*
|
542 |
@@Attribute:
|
543 |
@@@ref: subbody
|
544 |
|
545 |
@Element:
|
546 |
@@Name: div
|
547 |
@@Content:
|
548 |
(
|
549 |
\#PCDATA
|
550 |
| $:Flow.mix
|
551 |
)*
|
552 |
@@Attribute:
|
553 |
@@@ref: subbody
|
554 |
|
555 |
@Element:
|
556 |
@@Name: br
|
557 |
@@Content: "EMPTY"
|
558 |
@@Attribute:
|
559 |
@@@ref: subbody
|
560 |
|
561 |
@Content:
|
562 |
@@ElementType: hn
|
563 |
@@Content:
|
564 |
(
|
565 |
\#PCDATA
|
566 |
| $:Inline.mix
|
567 |
)*
|
568 |
|
569 |
@Element:
|
570 |
@@Name: h1
|
571 |
@@Content: $hn.content
|
572 |
@@Attribute:
|
573 |
@@@ref: hn
|
574 |
|
575 |
@Element:
|
576 |
@@Name: h2
|
577 |
@@Content: $hn.content
|
578 |
@@Attribute:
|
579 |
@@@ref: hn
|
580 |
|
581 |
@Element:
|
582 |
@@Name: h3
|
583 |
@@Content: $hn.content
|
584 |
@@Attribute:
|
585 |
@@@ref: hn
|
586 |
|
587 |
Module:
|
588 |
@Name: Table
|
589 |
@ID: table
|
590 |
|
591 |
@Element:
|
592 |
@@Name: th
|
593 |
@@Content:
|
594 |
(
|
595 |
\#PCDATA
|
596 |
| $semiflow.mix
|
597 |
)*
|
598 |
@@Attribute:
|
599 |
@@@ref: td
|
600 |
|
601 |
@Element:
|
602 |
@@Name: td
|
603 |
@@Content:
|
604 |
(
|
605 |
\#PCDATA
|
606 |
| $semiflow.mix
|
607 |
)*
|
608 |
@@Attribute:
|
609 |
@@@ref: td
|
610 |
|
611 |
@Element:
|
612 |
@@Name: tr
|
613 |
@@Content:
|
614 |
(
|
615 |
th
|
616 |
| td
|
617 |
)+
|
618 |
@@Attribute:
|
619 |
@@@ref: align
|
620 |
@@@ref: cellpadding
|
621 |
@@@ref: 行そろえ
|
622 |
@@@ref: subbody
|
623 |
|
624 |
@Element:
|
625 |
@@Name: table
|
626 |
@@Content:
|
627 |
(
|
628 |
tr
|
629 |
)+
|
630 |
@@Attribute:
|
631 |
@@@Attribute:
|
632 |
@@@@Name: "border"
|
633 |
@@@@Type: "CDATA"
|
634 |
@@@@Default: "表けい"
|
635 |
@@@@Description:
|
636 |
border (表けい|中細けい|裏けい|<borderlength>) 表けい
|
637 |
@@@ref: cellpadding
|
638 |
@@@Attribute:
|
639 |
@@@@Name: "frame"
|
640 |
@@@@Type: "(void|行頭|行末|行頭行末|前|後|前後|box)"
|
641 |
@@@@Default: "box"
|
642 |
@@@Attribute:
|
643 |
@@@@Name: "height"
|
644 |
@@@@Type: tablelengthnozero
|
645 |
@@@@Description: applied to vertical table
|
646 |
@@@Attribute:
|
647 |
@@@@Name: "rules"
|
648 |
@@@@Type: "(なし|行間|列間|行列間)"
|
649 |
@@@@Default: "行列間"
|
650 |
@@@Attribute:
|
651 |
@@@@Name: "width"
|
652 |
@@@@Type: tablelengthnozero
|
653 |
@@@@Description: applied to horizontal table
|
654 |
@@@ref: subbody
|
655 |
|
656 |
@Element:
|
657 |
@@Name: tab
|
658 |
@@Content: "EMPTY"
|
659 |
@@Attribute:
|
660 |
@@@ref: subbody
|
661 |
|
662 |
@Element:
|
663 |
@@Name: tabset
|
664 |
@@Content:
|
665 |
(
|
666 |
\#PCDATA
|
667 |
| tab
|
668 |
$:Ruby
|
669 |
| br
|
670 |
| $inoneline
|
671 |
)*
|
672 |
@@Description:
|
673 |
br cannot be here by definition of content model table,
|
674 |
but example in [JIS X 4052:2000, 6.11] includes br as a child of tabset.
|
675 |
@@Attribute:
|
676 |
@@@Attribute:
|
677 |
@@@@Name: "char"
|
678 |
@@@@Type: characters
|
679 |
@@@@Default: #REQUIRED
|
680 |
@@@Attribute:
|
681 |
@@@@Name: "タブ位置"
|
682 |
@@@@Type: tablelengths
|
683 |
@@@@Default: #REQUIRED
|
684 |
@@@Attribute:
|
685 |
@@@@Name: "タブ種"
|
686 |
@@@@Type: "CDATA"
|
687 |
@@@@Description:
|
688 |
タブ種 := tabType *(WSP tabType)
|
689 |
tabType := (左|上|右|下|中央|指定文字)
|
690 |
Default :
|
691 |
vertical : 左
|
692 |
horizontal : 上
|
693 |
@@@ref: subbody
|
694 |
|
695 |
Module:
|
696 |
@Name: Text
|
697 |
@ID: text
|
698 |
|
699 |
@Element:
|
700 |
@@Name: ch
|
701 |
@@Content:
|
702 |
(
|
703 |
\#PCDATA
|
704 |
)*
|
705 |
@@Attribute:
|
706 |
@@@Attribute:
|
707 |
@@@@Name: "height"
|
708 |
@@@@Type: position
|
709 |
@@@Attribute:
|
710 |
@@@@Name: "left"
|
711 |
@@@@Type: position
|
712 |
@@@@Default: "0"
|
713 |
@@@Attribute:
|
714 |
@@@@Name: "src"
|
715 |
@@@@Type:
|
716 |
:URI
|
717 |
@@@@Default: #REQUIRED
|
718 |
@@@Attribute:
|
719 |
@@@@Name: "top"
|
720 |
@@@@Type: position
|
721 |
@@@@Default: "0"
|
722 |
@@@Attribute:
|
723 |
@@@@Name: "width"
|
724 |
@@@@Type: position
|
725 |
@@@ref: subbody
|
726 |
@@Description:
|
727 |
Specific glyph of character [JIS X 4052:2000, 6.2 b) 1.2)]
|
728 |
|
729 |
Content shall be an alternative text.
|
730 |
|