Hi
My XML schema includes an empty element (nl) whose sole purpose is to mark a
required newline in its surrounding context. Here?s a trivial example:
<fragment>
101 my-field<nl />
next-field<nl />
...
</fragment>
The relevant styles defined in the CSS file which I am using to style
documents in the editor are these:
fragment {
display: block;
font-family: monospace;
font-size: 88%;
margin: 0 5em 0 5em;
white-space: pre;
}
nl {
display: inline;
content: paragraph(content("\A"));
}
This technique is described in O'Reilly's "CSS The Definitive Guide", which
also acknowledges that not all browsers may support it very well. So I
half-expected it not to work in XXE, and it certainly appears as though
there is an issue here. When the XMLMind editor displays a code fragment, it
displays a newline *symbol* in the locations where the XML contains <nl/>
elements. This suggests that the generated content is working, after a
fashion, but the generated newline is being translated into some visual
mnemonic. How can I modify the CSS to achieve what I want?
Thanks for any help
Cheers
T
?
Trevor Nicholls
Casting the Void