On 25 August 2012 13:30, Stuart Rackham <[email protected]> wrote:
>
>
> On 31/07/12 00:24, Wilhelm wrote:
>>
>> Hi again,
>>
>> I try to do the following: using a listing block an place a download icons
>> beside the block.
>>
>> Originally I tried to use a margin-note, but fop does not support that
>> already.
>>
>> So I try to use a table, and it works almost (later randomtext will be
>> replace
>> with the icon and the url to the source, the source will be generated with
>> the
>> sys macro).
>>
>> If there are better solutions for this, please give me a hint.
>>
>> The problem are the callouts. Trying the text below gives me:
>>
>> xsltproc --nonet ../xsl/fo-simple.xsl test.xml > test.fo
>> test.xml:64: element co: validity error : ID CO1-1 already defined
>> ring="unnumbered">public void add(Comparable&lt;T&gt; value) { // <co
>> id="CO1-1"
>
>
> The error is occurring because the next callout sequence number is not
> passed to the child asciidoc process that is being used to generate that
> "asciidoc" format column in the table (each "asciidoc" formatted table cell
> is rendered by spawning a new asciidoc process and each asciidoc process
> starts the numbering at 1).
>
> There's no easy way round this outside of putting source code examples
> in inline listing blocks rather than in tables cells.


Hi Stuart,

Maybe asciidoc could generate the callout IDs as CO_filename_1_1 to
get around the problem.  Of course the filename would have to have
illegal characters replaced by say _ as is done with headings.

Cheers
Lex

>
> Cheers, Stuart
>
>
>
>>
>>
>> test case follows:
>>
>>
>> [cols="<95%asciidoc,>.<5%",frame="none",grid="none",options="header",role="code"]
>> |====
>> |Überschrift |
>> |["source","java",role="codeintable"]
>> ----
>> public void add(Comparable<T> value) { // <1>
>> }
>> ----
>> <1> Bla
>>   | randomtext
>> |====
>>
>>
>>
>> [cols="<95%asciidoc,>.<5%",frame="none",grid="none",options="header",role="code"]
>> |====
>> |Überschrift |
>> |["source","java",role="codeintable"]
>> ----
>> public void add(Comparable<T> value) { // <1>
>> }
>> ----
>> <1> Bla
>>   | randomtext
>> |====
>>
>>
>
> --
> 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.
>

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