Author view formatting and XML generation
Posted: Thu Oct 02, 2008 6:54 pm
In my custom schema, I have a container element "understanding" that can contain paragraph elements "p". If there are carriage returns between the "p" elements in the "understanding elements in the XML file, these carriage returns show up as a blank line between the paragraphs in the author view.
When editing a document in the author view, creating a new paragraph does not result in a line break being created in the XML file. This results in long lines and arbitrary breaks that make the XML unreadable. Reformatting the XML to place line breaks between the "p" elements results in the problem described above: the line breaks show in the author view.
I have experimented with every combination of display and white-space settings I can think of in the associated css, but with no result.
If I create a DIDA topic, I find that it does not display the above behavior. That is, when a paragraph is created, there is a line break created between paragraphs in the XML file, and this line break does not show up as a blank line in the author view. I have searched through the DITA framework, but I can't figure out how it creates this behavior.
How do I get my custom schema and css to work the same way as the DITA one does?
When editing a document in the author view, creating a new paragraph does not result in a line break being created in the XML file. This results in long lines and arbitrary breaks that make the XML unreadable. Reformatting the XML to place line breaks between the "p" elements results in the problem described above: the line breaks show in the author view.
I have experimented with every combination of display and white-space settings I can think of in the associated css, but with no result.
If I create a DIDA topic, I find that it does not display the above behavior. That is, when a paragraph is created, there is a line break created between paragraphs in the XML file, and this line break does not show up as a blank line in the author view. I have searched through the DITA framework, but I can't figure out how it creates this behavior.
How do I get my custom schema and css to work the same way as the DITA one does?