Hmmm. Bringing me closer. The white space was never being "lost". That is, even though it was not being displayed in XMLmind, it was still present in the XML and published correctly (the main application of this element within PMC is as a container for content that is programatically stripped from .c files imported into our CMS and from there, automatically imported into programmer reference guides, and that's been working swimmingly).
The CSS change was already in place in my custom CSS, and adding the reference to my .xxe changed the display within XMLmind so that now whitespace is displayed correctly. Users still cannot enter new line feeds/carriage returns, however. Tapping the "Enter" key is simply not acknowledged. Nothing shows up on the console either, so at this point I'm just reconstructing my .xxe file one step at a time and waiting to see what breaks. Any other thoughts? Jeff. ----- Original Message ---- > From: Hussein Shafie <[email protected]> > To: Jeff Hooker <[email protected]> > Cc: "[email protected]" <[email protected]> > Sent: Sat, April 17, 2010 7:28:23 AM > Subject: Re: [XXE] Docbook programlisting element presentation > > Jeff Hooker wrote: > > I've got something odd happening in the > programlisting element of my docbook5 modification. Users cannot break lines, > so > the contents of the whole element must be one single line. > > > Your stock docbook5 config is not like this; users can add new lines, etc., > and > I'm groping for what I've changed. I know it nothing to do with the CSS or > the > .rnc files. It's something buried in my custom .xxe file. Got any clues for > me > to narrow down my search? > For elements like programlisting to > work as expected, you need: [1] This configuration > element --- <!-- This is needed because xml:space is declared as > follows in ``verbatim environments'': ... > & attribute xml:space {"preserve"}? & ... That is, it > is possible to add attribute xml:space but always with fixed > value "preserve". This is very different from: > [ a:defaultValue = "preserve" ] which would have > specified that "preserve" is the *default* value of attribute > xml:space. --> <preserveSpace elements="db:programlisting > db:literallayout db:screen > db:synopsis db:funcsynopsisinfo > > db:classsynopsisinfo db:address db:modifier" /> --- in your > .xxe configuration file. More info: > href="http://www.xmlmind.com/xmleditor/_distrib/doc/configure/preserveSpace.html" > > target=_blank > >http://www.xmlmind.com/xmleditor/_distrib/doc/configure/preserveSpace.html [2] > Property > white-space:pre; --- programlisting, screen, literallayout, synopsis > { display: block; white-space: pre; > font-family: monospace; margin: 1.33ex > 0; } --- in your custom .css files. More info: > href="http://www.w3.org/TR/CSS2/text.html#white-space-prop" target=_blank > >http://www.w3.org/TR/CSS2/text.html#white-space-prop > -- XMLmind XML Editor Support List > ymailto="mailto:[email protected]" > href="mailto:[email protected]">[email protected] > href="http://www.xmlmind.com/mailman/listinfo/xmleditor-support" > target=_blank > >http://www.xmlmind.com/mailman/listinfo/xmleditor-support -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

