This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


/ Frederic Alluin <frederic.alluin@webmedia.es> 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 <ndw@nwalsh.com>      | 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]