On 24 June 2015 at 15:03, Gavin Smith <[email protected]> wrote: > On 24 June 2015 at 14:43, Patrice Dumas <[email protected]> wrote: >> The reason why some elements only are allowed is to generate valid >> DocBook, as in <synopsis> not everything is accepted. I do not remember >> if <subscript> is allowed or not, I may have forgotten to add it. If it >> is not allowed, however, I think that inconsistent-looking output is >> better than invalid DocBook... > > Good point. I've found the following documentation for <synopsis> > http://www.docbook.org/tdg/en/html/synopsis.html > > It looks like <superscript> and <subscript> are allowed. See Children > section, following "The following elements occur in synopsis".
The point we've been missing, of course, is that these are not children of <synopsis>: they're children of <replaceable>, which is much more restrictive: http://www.docbook.org/tdg/en/html/replaceable.html <subscript> and <superscript> are allowed, but not others which we do allow at present, like <emphasis>.
