If I try to use the example perl listing 
from http://powerman.name/doc/asciidoc with 'asciidoc -b docbook -d book', 
the title is discarded from the resulting xml.
The version of asciidoc is asciidoc-8.4.5-7.fc17

Input:

.Optional Title

[source,Perl]
die 'connect: '.$dbh->errstr;

Not a code in next paragraph.


Output:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>

<book lang="en">
<bookinfo>
    <date>2012-10-08</date>
</bookinfo>
<programlisting language="Perl" linenumbering="unnumbered">die 'connect: 
'.$dbh-&gt;errstr;</programlisting>
<simpara>Not a code in next paragraph.</simpara>
</book>


The only way to make the title show up, is to use:

.Optional Title
-----
die 'connect: '.$dbh->errstr;
-----

which results in:

<example><title>Optional Title</title>
<screen>die 'connect: '.$dbh-&gt;errstr;</screen>
</example>

but doesn't have the required syntax highlighting.


Is there any way to get syntax highlighting and titles for examples?

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/asciidoc/-/UqsOXPTXN1gJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to