Next in thread → Next in month →

Re: DOCBOOK: [newbie] insert xml code examples in a docbook document

From
Norman Walsh <>
Date
2000-11-08T01:46:13+00:00
ID
Thread
Re: DOCBOOK: [newbie] insert xml code examples in a docbook document
/ Frederic Alluin <> was heard to say:
| Hi everybody,
| I use docbook (4.1.2) since today =)...
| It seems really good but during my tests I met a pb:
| - How can I insert an example of xml code withou use &gt; and &it; but
| directly the <example/> ??

You can use CDATA sections to escape markup:

<example><title>My Silly Example</title>
<programlisting><![CDATA[
Nothing <<matters>> in &here;.
Except for the end-of-CDATA flag
which is "]", "]", ">".
]]></programlisting>
</example>

| PS: If exist another unofficial links about docBook, I get ...;-)

See http://www.oasis-open.org/docbook/documentation/other.html

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <>      | The stone fell on the pitcher? Woe
http://www.oasis-open.org/docbook/ | to the pitcher. The pitcher fell
Chair, DocBook Technical Committee | on the stone? Woe to the
                                   | pitcher.--Rabbinic Saying
Next in thread → Next in month →