On 30 March 2012 10:13, Gary Funck <[email protected]> wrote:
> On 03/30/12 09:50:39, Lex Trotman wrote:
>> I suspect you have confused the two ways you can generate xhtml from
>> asciidoc input:
>>
>> 1. using asciidoc - which can embed resources when instructed by linkcss
>>
>> 2. using a2x - which uses asciidoc to generate docbook and then uses
>> xsltproc to generate xhtml, which is what you are doing
>
> Lex, thanks.  You're correct: originally the Makefile called
> asciidoc directly, generated the XML file and so on.  Then,
> I decided that it was simpler to use a2x, but that led to
> a subtle shift in the generated .html.  Also, you're correct
> that the document's output directory is also the directory
> where the source is built.  That probably should be changed
> at some point.

Hi Gary,

You should decide between asciidoc and a2x generated xhtml depending
on the characteristics of the xhtml you want.

Asciidoc generated xhtml uses javascript to do section numbering, toc
and some other bits, a2x generated xhtml is static and has a few other
slightly different characteristics.

Re embedding css in a2x generated xhtml, you *might* be able to do it
if you play with xslt options, eg generate.css.header and
docbook.css.source but I've never done it.  See
http://docbook.sourceforge.net/release/xsl/current/doc/html/index.html
for more detail.

Cheers
Lex

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
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