Skip to content

Commit

Permalink
Ok, removing example support from section and multisection was not su…
Browse files Browse the repository at this point in the history
…ch a good idea. I just found a use case for them, so add them back.
  • Loading branch information
steffann committed Jun 23, 2017
1 parent 57b06d8 commit bfca0b5
Show file tree
Hide file tree
Showing 3 changed files with 1,932 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ZConfig/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BaseParser(xml.sax.ContentHandler):
"description": ["key", "section", "multikey", "multisection",
"sectiontype", "abstracttype",
"schema", "component"],
"example": ["schema", "sectiontype", "key", "multikey"],
"example": ["schema", "sectiontype", "key", "multikey", "section", "multisection"],
"metadefault": ["key", "section", "multikey", "multisection"],
"default": ["key", "multikey"],
"import": ["schema", "component"],
Expand Down
4 changes: 2 additions & 2 deletions doc/schema.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@
handler NMTOKEN #IMPLIED
required (yes|no) "no">

<!ELEMENT section (description?)>
<!ELEMENT section (description?, example?)>
<!ATTLIST section
name CDATA "*"
attribute NMTOKEN #IMPLIED
type NMTOKEN #REQUIRED
handler NMTOKEN #IMPLIED
required (yes|no) "no">

<!ELEMENT multisection (description?)>
<!ELEMENT multisection (description?, example?)>
<!ATTLIST multisection
name CDATA "*"
attribute NMTOKEN #IMPLIED
Expand Down
Loading

0 comments on commit bfca0b5

Please sign in to comment.