GNOME Bugzilla – Bug 144739
DocBook: envar is no structural element
Last modified: 2004-12-22 21:47:04 UTC
Conglomertae cannot nest structural elements inside inline elements. As far as I know does the docbook dtd forbid this, too. I get an error when opening a DocBook document that contains an <envar> inside <userinput>, which is perfectly legal according to the docbook dtd, because envar and userinput elements are both inline.
I could fix this bug by adding following section to the docbook dispspec: <element type="span" localName="envar" color="a0b0c0"> <name>Environment Variable</name> <short-desc>An environment variable used most often for the UNIX, DOS, or Windows environments.</short-desc> <property-dialog service-id="docbook-generic-node-properties" /> </element>
Thanks; I've committed this to CVS (though without the <short-desc> element; the text of that appeared to have been copied from the O'Reilly book on DocBook, and I want to avoid possible copyright problems)