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 $
4 ;; Copyright (C) 1998, 1999, 2000, 2001 Tony Graham
6 ;; Author: Tony Graham <tkg@menteith.com>
8 ;;; This file is not part of GNU Emacs.
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.
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.
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.
27 ;; Data about elements and attributes in XSL stylesheets collected
30 ;; Send bugs to xslide-bug@menteith.com
31 ;; Use `xsl-submit-bug-report' for bug reports
36 (defvar xsl-xslt-ns-prefix "xsl"
37 "*Prefix for the XSL namespace")
39 (defvar xsl-fo-ns-prefix "fo"
40 "*Prefix for the Formatting Object namespace")
42 (defvar xsl-element-symbol-alist
58 ("name" "use-attribute-sets")
74 ("use-attribute-sets")
82 ("name" "decimal-separator" "grouping-separator" "infinity"
83 "minus-sign" "NaN" "percent" "per-mille" "zero-digit"
84 "digit" "pattern-separator")
88 ("name" "namespace" "use-attribute-sets")
112 ("name" "match" "use")
120 ("stylesheet-prefix" "result-prefix")
124 ("level" "count" "from" "value" "format" "lang" "letter-value"
125 "grouping-separator" "grouping-size")
133 ("method" "version" "encoding" "omit-xml-declaration"
134 "standalone" "doctype-public" "doctype-system"
135 "cdata-section-elements" "indent" "media-type")
145 '("processing-instruction"
151 ("select" "lang" "data-type" "order" "case-order")
161 '("extension-element-prefixes" nil)
162 '("exclude-result-prefixes" nil)
170 ("match" "mode" "priority" "name")
174 ("disable-output-escaping")
180 '("extension-element-prefixes" nil)
181 '("exclude-result-prefixes" nil)
189 ("select" "disable-output-escaping")
204 (defvar xsl-attributes-alist
207 '("cdata-section-elements" "cds" ())
209 '("data-type" "dt" ())
210 '("decimal-separator" "ds" ())
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" ())
221 '("grouping-separator" "gsep" ())
222 '("grouping-size" "gsiz" ())
226 '("infinity" "inf" ())
228 '("letter-value" "lv" ())
231 '("media-type" "mt" ())
232 '("method" "meth" ())
233 '("minus-sign" "ms" ())
235 '("n-digits-per-group" "ndpg" ())
237 '("namespace" "ns" ())
238 '("omit-xml-declaration" "oxml" ())
240 '("pattern-separator" "ps" ())
241 '("per-mille" "pm" ())
242 '("percent" "perc" ())
244 '("result-prefix" "rp" ())
246 '("standalone" "stand" ())
247 '("stylesheet-prefix" "spr" ())
248 '("terminate" "ter" ())
251 '("use-attribute-sets" "ua" ())
253 '("version" "ver" ())
255 '("xmlns:fo" "xnf" ())
256 '("xmlns:xsl" "xnx" ("http://www.w3.org/1999/XSL/Transform"))
257 '("zero-digit" "zd" ())))
259 (defvar xsl-fo-symbol-alist
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")))
318 (defvar xsl-fo-attribute-symbol-alist
320 '("absolute-position" "ap")
321 '("active-state" "as")
322 '("alignment-adjust" "aa")
323 '("alignment-baseline" "ab")
324 '("auto-restore" "ar")
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")
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")
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")
397 '("break-after" "ba")
398 '("break-before" "bb")
399 '("caption-side" "cs")
406 '("color-profile-name" "cpn")
407 '("column-count" "cc")
409 '("column-number" "cn")
410 '("column-width" "cw")
411 '("content-height" "ch")
412 '("content-type" "ct")
413 '("content-width" "cw")
418 '("destination-placement-offset" "dpo")
420 '("display-align" "da")
421 '("dominant-baseline" "db")
423 '("empty-cells" "ec")
427 '("external-destination" "ed")
431 '("font-family" "ff")
432 '("font-selection-strategy" "fss")
434 '("font-size-adjust" "fsa")
435 '("font-stretch" "fs")
437 '("font-variant" "fv")
438 '("font-weight" "fw")
439 '("force-page-count" "fpc")
441 '("glyph-orientation-horizontal" "goh")
442 '("glyph-orientation-vertical" "gov")
443 '("grouping-separator" "gs")
444 '("grouping-size" "gs")
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")
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")
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")
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")
495 '("margin-bottom" "mb")
496 '("margin-left" "ml")
497 '("margin-right" "mr")
499 '("marker-class-name" "mcn")
500 '("master-name" "mn")
501 '("master-reference" "mr")
504 '("maximum-repeats" "mr")
505 '("media-usage" "mu")
508 '("number-columns-repeated" "ncr")
509 '("number-columns-spanned" "ncs")
510 '("number-rows-spanned" "nrs")
511 '("odd-or-even" "ooe")
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")
544 '("pause-after" "pa")
545 '("pause-before" "pb")
547 '("pitch-range" "pr")
548 '("play-during" "pd")
551 '("provisional-distance-between-starts" "pdbs")
552 '("provisional-label-separation" "pls")
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")
566 '("rule-thickness" "rt")
568 '("scaling-method" "sm")
569 '("score-spaces" "ss")
571 '("show-destination" "sde")
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")
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")
600 '("speak-header" "sh")
601 '("speak-numeral" "sn")
602 '("speak-punctuation" "sp")
603 '("speech-rate" "sr")
605 '("start-indent" "si")
606 '("starting-state" "ss")
609 '("suppress-at-line-break" "salb")
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")
618 '("text-align-last" "tal")
619 '("text-altitude" "ta")
620 '("text-decoration" "td")
622 '("text-indent" "ti")
623 '("text-shadow" "ts")
624 '("text-transform" "tt")
626 '("treat-as-word-space" "taw")
627 '("unicode-bidi" "ub")
628 '("vertical-align" "va")
630 '("voice-family" "vf")
632 '("white-space" "ws")
633 '("white-space-collapse" "wsc")
634 '("white-space-treatment" "wst")
637 '("word-spacing" "ws")
638 '("wrap-option" "wo")
639 '("writing-mode" "wm")
643 (setq xsl-all-attribute-alist
647 xsl-fo-attribute-symbol-alist)
648 (lambda (a b) (string< (car a) (car b)))))
650 (setq xsl-all-elements-alist
654 (cons (if xsl-xslt-ns-prefix
655 (concat xsl-xslt-ns-prefix ":" (car x))
658 xsl-element-symbol-alist)
662 (concat xsl-fo-ns-prefix ":" (car x))
665 xsl-fo-symbol-alist))
666 (lambda (a b) (string< (car a) (car b)))))
668 (provide 'xslide-data)
670 ;; end of xslide-data.el