On Wed, Sep 03, 2003 at 04:09:32PM +0200, Pawel Jackowski na WP wrote:
> II.
> 
> 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.

This is how docbook in context does it:

\def\XMLDBstartlineorientedlayout
   {\bgroup
    \frenchspacing \obeyspaces \obeytabs \obeylines
    \parindent=0pt%
    \setupwhitespace[none]
    \def\obeyedline{\par\def\obeyedline{\strut\par}}%
    \def\obeyedspace{\strut\space}%
    \blank[medium]}
\def\XMLDBstoplineorientedlayout{\blank[medium]\egroup}

\defineXMLenvironment[programlisting]
   {\XMLDBstartlineorientedlayout 
    \tt\XMLsimpleentitiestrue}%
   {\XMLDBstoplineorientedlayout}

Regards, Simon

-- 
Simon Pepping
email: [EMAIL PROTECTED]
home page: scaprea.hobby.nl

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to