On Wed, September 26, 2012 9:43 pm, Stuart Rackham wrote:
>
>
> On 27/09/12 15:18, Manfred Moser wrote:
>> Hi!
>>
>> I have a book build that creates a chunked html output with a2x. Now I
>> would like to use a passthrough snippet with
>>
>> ++++
>> somehtml
>> ++++
>>
>> or some other syntax that would just affect the produced chunked html
>> but not the produced pdf that I am also creating with a2x from the same
>> source.
>>
>> Is this somehow possible? The passthrough currently works fine into the
>> singlepage html created with asciidoc but the a2x bails out.
>>
>> What am I missing?
>
> asciidoc passes the snippet to its output file. When asciidoc is
> executed by a2x the asciidoc output file format DocBook (which a2x
> passes on to the downstream toolchain which converts the DocBook to
> HTML), so the snippet must be valid DocBook not HTML.


Thank you very much for the hint Stuart. I got it to work with a hint from
http://www.sagehill.net/docbookxsl/InsertExtHtml.html

So I am using an external html file and in asciidoc I use

++++
<?dbhtml-include href="promo.html"?>
++++

so the ++++ causes asciidoc to pass it through and the dbhtml is valid
docbook that in turns include the html..

Works like a charm.

manfred

-- 
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