On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote:
Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way
<verbatim> .... </verbatim>
to get literal content of such XML tag?
There are no verbatim environments in XML, and you cannot get literal content. Instead, you can have tags, like your verbatim above, that request line-oriented layout. programlisting is such a tag in Docbook.
That's correct with respect to elements--since XML deliberately avoids defining semantics for any element. But you seem to be overlooking CDATA sections, which are more-or-less verbatim environments. The XML spec doesn't directly address the question of formatting in CDATA sections, but all characters are supposed to be output literally, and AFAIK that includes white space--hence all formatting should be preserved. But I don't know if ConTeXt can handle CDATA sections. Can it? -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.)