Mark Derricutt wrote: > > Hiya, I'm trying to add some <programlisting> and <screen> sections to my > DocBook documents, which rely on the literal layout of the XML document, > however, XXE doesn't save the carriage returns so the sections all run on > one line. > > I'm sure this has been asked many times before, but is there a > solution/work around for this? > > If I use <literallayout/> it seems to work ok, but then my documents don't > render as I originally intended. > > Is this a problem with the XXE docbook stylesheets? > > Interesting - I had one document that it worked in, and another that it > didn't. The only difference - the one that worked was declared: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" > "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"> > > Whereas the one that didn't was: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> > > This is using XXE 2.2 Standard.
Well, this question has been answered many times but, as usual, I was too lazy to update the FAQ! This is done now, please see http://www.xmlmind.com/xmleditor/faq.html#docbookpreservespace

