Hi Lex,

Thanks for your idea.

I've used Use System Attributes and it works.

Here is the solution for my problem

[admonitionblock]
> {eval3:"{name}"=="tip"}<imgtext type="idea"> 
> {eval3:"{name}"=="note"}<imgtext type="info">
> |</imgtext>


According to the value of {name} the output value will be 

<imgtext type="idea">|</imgtext> 


or 

<imgtext type="info">|</imgtext> 


I hope it will help people. 

Mickael


Le lundi 7 avril 2014 18:29:44 UTC+2, Lex Trotman a écrit :
>
> Hi, 
>
> The ifeval is evaluated when the conf file is loaded, not when the 
> template is expanded. 
>
> Use system attributes to drop (or not) lines in template expansions. 
>
> Cheers 
> Lex 
>
>
> On 8 April 2014 00:59, Mickaël BARON <[email protected] <javascript:>> 
> wrote: 
> > For executing this sample 
> > 
> >> asciidoc -d book -f sample.conf -o sample.xml -v sample.adoc 
> > 
> > 
> > Mickael 
> > 
> > Le lundi 7 avril 2014 16:57:56 UTC+2, Mickaël BARON a écrit : 
> >> 
> >> Daniele, 
> >> 
> >> Thanks for your response. But, it's not working. 
> >> 
> >> I'm writing a sample example (sample.conf, sample.xml and sample.adoc) 
> for 
> >> illustrating this issue. The sample.xml is the output. 
> >> 
> >> As you can see, the if code block is never reached. 
> >> 
> >> Mickael 
> >> 
> >> 
> >> Le lundi 7 avril 2014 00:29:24 UTC+2, Daniele a écrit : 
> >>> 
> >>> Add quotes: 
> >>> 
> >>>     ifeval::["{name}" == "note"] 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "asciidoc" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected]<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/asciidoc. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to