Initial Commit
[packages] / xemacs-packages / xslide / xslide-data.el
1 ;;;; xslide-data.el --- XSL IDE element and attribute data
2 ;; $Id: xslide-data.el,v 1.3 2003/05/20 15:23:34 tonygraham Exp $
3
4 ;; Copyright (C) 1998, 1999, 2000, 2001 Tony Graham
5
6 ;; Author: Tony Graham <tkg@menteith.com>
7
8 ;;; This file is not part of GNU Emacs.
9
10 ;; This program is free software; you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License
12 ;; as published by the Free Software Foundation; either version 2
13 ;; of the License, or (at your option) any later version.
14 ;; 
15 ;; This program is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ;; GNU General Public License for more details.
19 ;; 
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with this program; if not, write to the Free Software
22 ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 \f
25 ;;;; Commentary:
26
27 ;; Data about elements and attributes in XSL stylesheets collected
28 ;; in one place
29
30 ;; Send bugs to xslide-bug@menteith.com
31 ;; Use `xsl-submit-bug-report' for bug reports
32
33 \f
34 ;;;; Variables
35
36 (defvar xsl-xslt-ns-prefix "xsl"
37   "*Prefix for the XSL namespace")
38
39 (defvar xsl-fo-ns-prefix "fo"
40   "*Prefix for the Formatting Object namespace")
41
42 (defvar xsl-element-symbol-alist
43   (list
44    '("apply-imports"
45      "empty"
46      ()
47      "xai")
48    '("apply-templates"
49      "block"
50      ("select" "mode")
51      "xat")
52    '("attribute"
53      "block"
54      ("name" "namespace")
55      "xa")
56    '("attribute-set"
57      "block"
58      ("name" "use-attribute-sets")
59      "xas")
60    '("call-template"
61      "block"
62      ("name")
63      "xct")
64    '("choose"
65      "block"
66      ()
67      "xc")
68    '("comment"
69      "block"
70      ()
71      "xcm")
72    '("copy"
73      "block"
74      ("use-attribute-sets")
75      "xcp")
76    '("copy-of"
77      "block"
78      ("select")
79      "xco")
80    '("decimal-format"
81      "block"
82      ("name" "decimal-separator" "grouping-separator" "infinity"
83       "minus-sign" "NaN" "percent" "per-mille" "zero-digit"
84       "digit" "pattern-separator")
85      "xdf")
86    '("element"
87      "block"
88      ("name" "namespace" "use-attribute-sets")
89      "xe")
90    '("fallback"
91      "block"
92      ()
93      "xfb")
94    '("for-each"
95      "block"
96      ("select")
97      "xfe")
98    '("if"
99      "block"
100      ("test")
101      "xif")
102    '("import"
103      "empty"
104      ("href")
105      "xim")
106    '("include"
107      "empty"
108      ("href")
109      "xinc")
110    '("key"
111      "block"
112      ("name" "match" "use")
113      "xk")
114    '("message"
115      "block"
116      ("terminate")
117      "xme")
118    '("namespace-alias"
119      "block"
120      ("stylesheet-prefix" "result-prefix")
121      "xna")
122    '("number"
123      "empty"
124      ("level" "count" "from" "value" "format" "lang" "letter-value"
125       "grouping-separator" "grouping-size")
126      "xn")
127    '("otherwise"
128      "block"
129      ()
130      "xo")
131    '("output"
132      "empty"
133      ("method" "version" "encoding" "omit-xml-declaration"
134       "standalone" "doctype-public" "doctype-system"
135       "cdata-section-elements" "indent" "media-type")
136      "xout")
137    '("param"
138      "block"
139      ("name" "select")
140      "xpa")
141    '("preserve-space"
142      "empty"
143      ("elements")
144      "xps")
145    '("processing-instruction"
146      "block"
147      ("name")
148      "xpi")
149    '("sort"
150      "empty"
151      ("select" "lang" "data-type" "order" "case-order")
152      "xso")
153    '("strip-space"
154      "empty"
155      ("elements")
156      "xss")
157    (list "stylesheet"
158      "block"
159      (list
160       '("id" nil)
161       '("extension-element-prefixes" nil)
162       '("exclude-result-prefixes" nil)
163       '("version" nil)
164       '("xmlns" nil)
165       '("xmlns:xsl" t)
166       '("xmlns:fo" nil))
167      "xs")
168    '("template"
169      "block"
170      ("match" "mode" "priority" "name")
171      "xt")
172    '("text"
173      "inline"
174      ("disable-output-escaping")
175      "xtxt")
176    (list "transform"
177      "block"
178      (list
179       '("id" nil)
180       '("extension-element-prefixes" nil)
181       '("exclude-result-prefixes" nil)
182       '("version" nil)
183       '("xmlns" nil)
184       '("xmlns:xsl" t)
185       '("xmlns:fo" nil))
186      "xtran")
187    '("value-of"
188      "empty"
189      ("select" "disable-output-escaping")
190      "xvo")
191    '("variable"
192      "block"
193      ("name" "select")
194      "xva")
195    '("when"
196      "block"
197      ("test")
198      "xw")
199    '("with-param"
200      "block"
201      ("name" "select")
202      "xwp")))
203
204 (defvar xsl-attributes-alist
205   (list
206    '("NaN" "nan" ())
207    '("cdata-section-elements" "cds" ())
208    '("count" "cnt" ())
209    '("data-type" "dt" ())
210    '("decimal-separator" "ds" ())
211    '("digit" "dig" ())
212    '("disable-output-escaping" "doe" ())
213    '("doctype-public" "dtp" ())
214    '("doctype-system" "dts" ())
215    '("elements" "ele" ())
216    '("encoding" "enc" ())
217    '("exclude-result-prefixes" "erp" ())
218    '("extension-element-prefixes" "eep" ())
219    '("format" "fmt" ())
220    '("from" "fr" ())
221    '("grouping-separator" "gsep" ())
222    '("grouping-size" "gsiz" ())
223    '("href" "href" ())
224    '("id" "id" ())
225    '("indent" "ind" ())
226    '("infinity" "inf" ())
227    '("lang" "l" ())
228    '("letter-value" "lv" ())
229    '("level" "lvl" ())
230    '("match" "m" ())
231    '("media-type" "mt" ())
232    '("method" "meth" ())
233    '("minus-sign" "ms" ())
234    '("mode" "mo" ())
235    '("n-digits-per-group" "ndpg" ())
236    '("name" "n" ())
237    '("namespace" "ns" ())
238    '("omit-xml-declaration" "oxml" ())
239    '("order" "o" ())
240    '("pattern-separator" "ps" ())
241    '("per-mille" "pm" ())
242    '("percent" "perc" ())
243    '("priority" "p" ())
244    '("result-prefix" "rp" ())
245    '("select" "s" ())
246    '("standalone" "stand" ())
247    '("stylesheet-prefix" "spr" ())
248    '("terminate" "ter" ())
249    '("test" "t" ())
250    '("use" "use" ())
251    '("use-attribute-sets" "ua" ())
252    '("value" "v" ())
253    '("version" "ver" ())
254    '("xmlns" "xn" ())
255    '("xmlns:fo" "xnf" ())
256    '("xmlns:xsl" "xnx" ("http://www.w3.org/1999/XSL/Transform"))
257    '("zero-digit" "zd" ())))
258
259 (defvar xsl-fo-symbol-alist
260   (list
261    '("basic-link" "inline" () "fbl")
262    '("bidi-override" "inline" () "fbo")
263    '("block" "block" () "fb")
264    '("block-container" "block" () "fbc")
265    '("character" "empty" () "fc")
266    '("color-profile" "empty" () "fcp")
267    '("conditional-page-master-reference" "empty" () "fcpmr")
268    '("declarations" "block" () "fd")
269    '("external-graphic" "empty" () "feg")
270    '("float" "block" () "ff")
271    '("flow" "block" () "ff")
272    '("footnote" "block" () "ff")
273    '("footnote-body" "block" () "ffb")
274    '("initial-property-set" "empty" () "fips")
275    '("inline" "inline" () "fi")
276    '("inline-container" "inline" () "fic")
277    '("instream-foreign-object" "block" () "fifo")
278    '("layout-master-set" "block" () "flms")
279    '("leader" "inline" () "fl")
280    '("list-block" "block" () "flb")
281    '("list-item" "block" () "fli")
282    '("list-item-body" "block" () "flib")
283    '("list-item-label" "block" () "flil")
284    '("marker" "inline" () "fm")
285    '("multi-case" "inline" () "fmc")
286    '("multi-properties" "block" () "fmp")
287    '("multi-property-set" "empty" () "fmps")
288    '("multi-switch" "block" () "fms")
289    '("multi-toggle" "inline" () "fmt")
290    '("page-number" "empty" () "fpn")
291    '("page-number-citation" "empty" () "fpnc")
292    '("page-sequence" "block" () "fps")
293    '("page-sequence-master" "block" () "fpsm")
294    '("region-after" "empty" () "fra")
295    '("region-before" "empty" () "frb")
296    '("region-body" "empty" () "frb")
297    '("region-end" "empty" () "fre")
298    '("region-start" "empty" () "frs")
299    '("repeatable-page-master-alternatives" "block" () "frpma")
300    '("repeatable-page-master-reference" "empty" () "frpmr")
301    '("retrieve-marker" "empty" () "frm")
302    '("root" "block" () "fr")
303    '("simple-page-master" "block" () "fspm")
304    '("single-page-master-reference" "empty" () "fspm")
305    '("static-content" "block" () "fsc")
306    '("table" "block" () "ft")
307    '("table-and-caption" "block" () "ftac")
308    '("table-body" "block" () "ftb")
309    '("table-caption" "block" () "ftc")
310    '("table-cell" "block" () "ftc")
311    '("table-column" "empty" () "ftc")
312    '("table-footer" "block" () "ftf")
313    '("table-header" "block" () "fth")
314    '("table-row" "block" () "ftr")
315    '("title" "inline" () "ft")
316    '("wrapper" "inline" () "fw")))
317
318 (defvar xsl-fo-attribute-symbol-alist
319   (list
320    '("absolute-position" "ap")
321    '("active-state" "as")
322    '("alignment-adjust" "aa")
323    '("alignment-baseline" "ab")
324    '("auto-restore" "ar")
325    '("azimuth" "a")
326    '("background" "b")
327    '("background-attachment" "ba")
328    '("background-color" "bc")
329    '("background-image" "bi")
330    '("background-position" "bp")
331    '("background-position-horizontal" "bph")
332    '("background-position-vertical" "bpv")
333    '("background-repeat" "br")
334    '("baseline-shift" "bs")
335    '("blank-or-not-blank" "bon")
336    '("block-progression-dimension" "bpd")
337    '("block-progression-dimension.maximum" "bpdmax")
338    '("block-progression-dimension.minimum" "bpdmin")
339    '("block-progression-dimension.optimum" "bpdopt")
340    '("border" "b")
341    '("border-after-color" "bac")
342    '("border-after-precedence" "bap")
343    '("border-after-style" "bas")
344    '("border-after-width" "baw")
345    '("border-after-width.conditionality" "bawc")
346    '("border-after-width.length" "bawl")
347    '("border-before-color" "bbc")
348    '("border-before-precedence" "bbp")
349    '("border-before-style" "bbs")
350    '("border-before-width" "bbw")
351    '("border-before-width.conditionality" "bbwc")
352    '("border-before-width.length" "bbwc")
353    '("border-bottom" "bb")
354    '("border-bottom-color" "bbc")
355    '("border-bottom-style" "bbs")
356    '("border-bottom-width" "bbw")
357    '("border-bottom-width.conditionality" "bbwc")
358    '("border-bottom-width.length" "bbwl")
359    '("border-collapse" "bc")
360    '("border-color" "bc")
361    '("border-end-color" "bec")
362    '("border-end-precedence" "bep")
363    '("border-end-style" "bes")
364    '("border-end-width" "bew")
365    '("border-end-width.conditionality" "bewc")
366    '("border-end-width.length" "bewl")
367    '("border-left" "bl")
368    '("border-left-color" "blc")
369    '("border-left-style" "bls")
370    '("border-left-width" "blw")
371    '("border-left-width.conditionality" "blwc")
372    '("border-left-width.length" "blwl")
373    '("border-right" "br")
374    '("border-right-color" "brc")
375    '("border-right-style" "brs")
376    '("border-right-width" "brw")
377    '("border-right-width.conditionality" "brwc")
378    '("border-right-width.length" "brwl")
379    '("border-separation.block-progression-direction" "bsbpd")
380    '("border-separation.inline-progression-direction" "bsipd")
381    '("border-spacing" "bs")
382    '("border-start-color" "bsc")
383    '("border-start-precedence" "bsp")
384    '("border-start-style" "bss")
385    '("border-start-width" "bsw")
386    '("border-start-width.conditionality" "bswc")
387    '("border-start-width.length" "bswl")
388    '("border-style" "bs")
389    '("border-top" "bt")
390    '("border-top-color" "btc")
391    '("border-top-style" "bts")
392    '("border-top-width" "btw")
393    '("border-top-width.conditionality" "btwc")
394    '("border-top-width.length" "btwl")
395    '("border-width" "bw")
396    '("bottom" "b")
397    '("break-after" "ba")
398    '("break-before" "bb")
399    '("caption-side" "cs")
400    '("case-name" "cn")
401    '("case-title" "ct")
402    '("character" "ch")
403    '("clear" "cl")
404    '("clip" "cli")
405    '("color" "c")
406    '("color-profile-name" "cpn")
407    '("column-count" "cc")
408    '("column-gap" "cg")
409    '("column-number" "cn")
410    '("column-width" "cw")
411    '("content-height" "ch")
412    '("content-type" "ct")
413    '("content-width" "cw")
414    '("country" "c")
415    '("cue" "c")
416    '("cue-after" "ca")
417    '("cue-before" "cb")
418    '("destination-placement-offset" "dpo")
419    '("direction" "d")
420    '("display-align" "da")
421    '("dominant-baseline" "db")
422    '("elevation" "e")
423    '("empty-cells" "ec")
424    '("end-indent" "ei")
425    '("ends-row" "er")
426    '("extent" "e")
427    '("external-destination" "ed")
428    '("float" "f")
429    '("flow-name" "fn")
430    '("font" "f")
431    '("font-family" "ff")
432    '("font-selection-strategy" "fss")
433    '("font-size" "fs")
434    '("font-size-adjust" "fsa")
435    '("font-stretch" "fs")
436    '("font-style" "fs")
437    '("font-variant" "fv")
438    '("font-weight" "fw")
439    '("force-page-count" "fpc")
440    '("format" "f")
441    '("glyph-orientation-horizontal" "goh")
442    '("glyph-orientation-vertical" "gov")
443    '("grouping-separator" "gs")
444    '("grouping-size" "gs")
445    '("height" "h")
446    '("hyphenate" "hy")
447    '("hyphenation-character" "hc")
448    '("hyphenation-keep" "hk")
449    '("hyphenation-ladder-count" "hlc")
450    '("hyphenation-push-character-count" "hpc")
451    '("hyphenation-remain-character-count" "hrcc")
452    '("id" "i")
453    '("indicate-destination" "id")
454    '("initial-page-number" "ipn")
455    '("inline-progression-dimension" "ipd")
456    '("inline-progression-dimension.maximum" "ipdmax")
457    '("inline-progression-dimension.minimum" "ipdmin")
458    '("inline-progression-dimension.optimum" "ipdopt")
459    '("internal-destination" "id")
460    '("intrusion-displace" "id")
461    '("keep-together" "kt")
462    '("keep-together.within-column" "ktc")
463    '("keep-together.within-line" "ktl")
464    '("keep-together.within-page" "ktp")
465    '("keep-with-next" "kwn")
466    '("keep-with-next.within-column" "kwnc")
467    '("keep-with-next.within-line" "kwnl")
468    '("keep-with-next.within-page" "kwnp")
469    '("keep-with-previous" "kwp")
470    '("keep-with-previous.within-column" "kwpc")
471    '("keep-with-previous.within-line" "kwpl")
472    '("keep-with-previous.within-page" "kwpp")
473    '("language" "la")
474    '("last-line-end-indent" "lle")
475    '("leader-alignment" "la")
476    '("leader-length" "ll")
477    '("leader-length.maximum" "llmax")
478    '("leader-length.minimum" "llmin")
479    '("leader-length.optimum" "llopt")
480    '("leader-pattern" "lp")
481    '("leader-pattern-width" "lpw")
482    '("left" "le")
483    '("letter-spacing" "ls")
484    '("letter-value" "lv")
485    '("line-height" "lh")
486    '("line-height.minimum" "lhmin")
487    '("line-height.optimum" "lhopt")
488    '("line-height.maximum" "lhmax")
489    '("line-height.precedence" "lhprec")
490    '("line-height.conditionality" "lhcond")
491    '("line-height-shift-adjustment" "lhs")
492    '("line-stacking-strategy" "lss")
493    '("linefeed-treatment" "lt")
494    '("margin" "m")
495    '("margin-bottom" "mb")
496    '("margin-left" "ml")
497    '("margin-right" "mr")
498    '("margin-top" "mt")
499    '("marker-class-name" "mcn")
500    '("master-name" "mn")
501    '("master-reference" "mr")
502    '("max-height" "mh")
503    '("max-width" "mw")
504    '("maximum-repeats" "mr")
505    '("media-usage" "mu")
506    '("min-height" "mh")
507    '("min-width" "mw")
508    '("number-columns-repeated" "ncr")
509    '("number-columns-spanned" "ncs")
510    '("number-rows-spanned" "nrs")
511    '("odd-or-even" "ooe")
512    '("orphans" "or")
513    '("overflow" "ov")
514    '("padding" "pd")
515    '("padding-after" "pa")
516    '("padding-after.length" "pal")
517    '("padding-after.conditionality" "pacond")
518    '("padding-before" "pb")
519    '("padding-before.length" "pbl")
520    '("padding-before.conditionality" "pbcond")
521    '("padding-bottom" "pbo")
522    '("padding-bottom.length" "pbol")
523    '("padding-bottom.conditionality" "pbocond")
524    '("padding-end" "pe")
525    '("padding-end.length" "pel")
526    '("padding-end.conditionality" "pecond")
527    '("padding-left" "pl")
528    '("padding-left.length" "pll")
529    '("padding-left.conditionality" "plcond")
530    '("padding-right" "pr")
531    '("padding-right.length" "prl")
532    '("padding-right.conditionality" "prcond")
533    '("padding-start" "ps")
534    '("padding-start.length" "psl")
535    '("padding-start.conditionality" "pscond")
536    '("padding-top" "pt")
537    '("page-break-after" "pba")
538    '("page-break-before" "pbb")
539    '("page-break-inside" "pbi")
540    '("page-height" "ph")
541    '("page-position" "pp")
542    '("page-width" "pw")
543    '("pause" "p")
544    '("pause-after" "pa")
545    '("pause-before" "pb")
546    '("pitch" "p")
547    '("pitch-range" "pr")
548    '("play-during" "pd")
549    '("position" "p")
550    '("precedence" "p")
551    '("provisional-distance-between-starts" "pdbs")
552    '("provisional-label-separation" "pls")
553    '("ref-id" "rid")
554    '("reference-orientation" "ro")
555    '("region-name" "rn")
556    '("relative-align" "ra")
557    '("relative-position" "rp")
558    '("rendering-intent" "ri")
559    '("retrieve-boundary" "rb")
560    '("retrieve-class-name" "rcn")
561    '("retrieve-position" "rp")
562    '("richness" "rich")
563    '("right" "rig")
564    '("role" "ro")
565    '("rule-style" "rs")
566    '("rule-thickness" "rt")
567    '("scaling" "sc")
568    '("scaling-method" "sm")
569    '("score-spaces" "ss")
570    '("script" "scr")
571    '("show-destination" "sde")
572    '("size" "si")
573    '("source-document" "sdo")
574    '("space-after" "sa")
575    '("space-after.minimum" "samin")
576    '("space-after.optimum" "saopt")
577    '("space-after.maximum" "samax")
578    '("space-after.precedence" "saprec")
579    '("space-after.conditionality" "sacond")
580    '("space-before" "sb")
581    '("space-before.minimum" "sbmin")
582    '("space-before.optimum" "sbopt")
583    '("space-before.maximum" "sbmax")
584    '("space-before.precedence" "sbprec")
585    '("space-before.conditionality" "sbcond")
586    '("space-end" "se")
587    '("space-end.minimum" "semin")
588    '("space-end.optimum" "seopt")
589    '("space-end.maximum" "semax")
590    '("space-end.precedence" "seprec")
591    '("space-end.conditionality" "second")
592    '("space-start" "ss")
593    '("space-start.minimum" "ssmin")
594    '("space-start.optimum" "ssopt")
595    '("space-start.maximum" "ssmax")
596    '("space-start.precedence" "ssprec")
597    '("space-start.conditionality" "sscond")
598    '("span" "spn")
599    '("speak" "spe")
600    '("speak-header" "sh")
601    '("speak-numeral" "sn")
602    '("speak-punctuation" "sp")
603    '("speech-rate" "sr")
604    '("src" "src")
605    '("start-indent" "si")
606    '("starting-state" "ss")
607    '("starts-row" "sr")
608    '("stress" "str")
609    '("suppress-at-line-break" "salb")
610    '("switch-to" "st")
611    '("table-layout" "tl")
612    '("table-omit-footer-at-break" "tofb")
613    '("table-omit-header-at-break" "tohb")
614    '("target-presentation-context" "tpc")
615    '("target-processing-context" "tpc")
616    '("target-stylesheet" "ts")
617    '("text-align" "ta")
618    '("text-align-last" "tal")
619    '("text-altitude" "ta")
620    '("text-decoration" "td")
621    '("text-depth" "td")
622    '("text-indent" "ti")
623    '("text-shadow" "ts")
624    '("text-transform" "tt")
625    '("top" "top")
626    '("treat-as-word-space" "taw")
627    '("unicode-bidi" "ub")
628    '("vertical-align" "va")
629    '("visibility" "vi")
630    '("voice-family" "vf")
631    '("volume" "vo")
632    '("white-space" "ws")
633    '("white-space-collapse" "wsc")
634    '("white-space-treatment" "wst")
635    '("widows" "wdw")
636    '("width" "w")
637    '("word-spacing" "ws")
638    '("wrap-option" "wo")
639    '("writing-mode" "wm")
640    '("xml:lang" "xl")
641    '("z-index" "zi")))
642
643 (setq xsl-all-attribute-alist
644       (sort
645        (append
646         xsl-attributes-alist
647         xsl-fo-attribute-symbol-alist)
648        (lambda (a b) (string< (car a) (car b)))))
649
650 (setq xsl-all-elements-alist
651       (sort
652        (append
653         (mapcar (lambda (x)
654                   (cons (if xsl-xslt-ns-prefix
655                             (concat xsl-xslt-ns-prefix ":" (car x))
656                           (car x))
657                         (cdr x)))
658                 xsl-element-symbol-alist)
659         (mapcar (lambda (x)
660                   (if xsl-fo-ns-prefix
661                       (cons
662                        (concat xsl-fo-ns-prefix ":" (car x))
663                        (cdr x))
664                     x))
665                 xsl-fo-symbol-alist))
666        (lambda (a b) (string< (car a) (car b)))))
667
668 (provide 'xslide-data)
669
670 ;; end of xslide-data.el