Re: [NTG-context] counting characters when dealing with XML

2015-01-22 Thread Pablo Rodriguez
On 01/21/2015 12:36 AM, Hans Hagen wrote: > On 1/20/2015 8:50 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I have a question when dealing with XML. >> >> Is there any way to write a conditional based on the number of >> characters in a given field? >> [...] > let tex do the work .. counting is no

Re: [NTG-context] counting characters when dealing with XML

2015-01-20 Thread Hans Hagen
On 1/20/2015 8:50 PM, Pablo Rodriguez wrote: Dear list, I have a question when dealing with XML. Is there any way to write a conditional based on the number of characters in a given field? I mean, the following field: \xmltext{#1}{h1[@class='subtitle']} If subtitle > 60 chars, then font

[NTG-context] counting characters when dealing with XML

2015-01-20 Thread Pablo Rodriguez
Dear list, I have a question when dealing with XML. Is there any way to write a conditional based on the number of characters in a given field? I mean, the following field: \xmltext{#1}{h1[@class='subtitle']} If subtitle > 60 chars, then fontsize = 10pt. If subtitle > 50 chars, then fontsi