annotate etc/schema/xhtml-attribs.rnc @ 96126:fcd827c4a553
Fix up docstring conventions.
Move vars to before their first use.
(rst-mode): Don't mess with font-lock-support-mode.
(rst-suggest-new-decoration, rst-adjust-decoration):
Avoid CL's copy-list.
(rst-delete-entire-line): Use line-beginning-position.
(rst-position): New fun.
(rst-straighten-decorations): Use it instead of CL's position.
(rst-straighten-bullets-region): Avoid CL's mapcar*.
(rst-toc-mode): Use define-derived-mode.
(rst-iterate-leftmost-paragraphs, rst-iterate-leftmost-paragraphs-2):
Remove unused var `in-par'. Use `point' rather than `point-marker'.
(rst-line-block-region): Reduce redundancy. Use the `pfxarg' arg.
(rst-replace-lines): Simplify.
author |
Stefan Monnier <monnier@iro.umontreal.ca> |
date |
Fri, 20 Jun 2008 17:53:42 +0000 |
parents |
38f93f3d00a2 |
children |
|
rev |
line source |
86361
|
1 # Common Attributes Module
|
|
2
|
|
3 id.attrib = attribute id { ID.datatype }?
|
|
4 class.attrib = attribute class { NMTOKENS.datatype }?
|
|
5 title.attrib = attribute title { Text.datatype }?
|
|
6 Core.attrib = id.attrib, class.attrib, title.attrib
|
|
7 lang.attrib = attribute xml:lang { LanguageCode.datatype }?
|
|
8 I18n.attrib = lang.attrib
|
|
9 Common.attrib = Core.attrib, I18n.attrib
|
|
10 CommonIdRequired.attrib =
|
|
11 attribute id { ID.datatype },
|
|
12 class.attrib,
|
|
13 title.attrib,
|
|
14 I18n.attrib
|