St?phane Mottelet wrote: > I was wondering why xxe has a different behavior regarding > splitting of #PCDATA type elements when a carriage return is entered. > For example, for a classical mixed content type element, eg: > > <!ELEMENT verbatim (#PCDATA)> > > contained in another element which allows any number of verbatimm > elements, then a carriage return in the body of a verbatim elements > splits the element in two. I can understand that for classical > paragraph elements, where an explicit carriage return is irrelevant, > since it means that a new paragraph is to begin ; > > but for really verbatim stuff, like a program listing, those cr are > really meaningfull. I saw in the userguide of xxe, which is of > docbook type, the programlisting element keeps explicit cr's. How can > it be done ? I have tried to look in the dtd, but I don't see why cr > should be kept, altough they are not in e.g. para elements.
"white-space: pre" in the CSS. "xml:space (default|preserve) #FIXED preserve" in the DTD (For the DocBook DTD, it is done by including entity ../preservespace.ent) For more details, see http://www.xmlmind.com/xmleditor/faq.html#pre PS: Tip: Ctrl-Enter can be used to split a verbatim, like Enter is used to split a para.

