[NTG-context] two questions on lpaths

Pablo Rodriguez oinos at gmx.es
Tue May 5 20:08:01 CEST 2015


On 05/05/2015 12:34 PM, Hans Hagen wrote:
> On 5/4/2015 5:51 PM, Pablo Rodriguez wrote:
>> Dear list,
>> [...]
>> The only way to make the link work in XML is to remove the '#' char from
>> \xmlatt{#1}{href}.
>>
>> How could I achieve it without modifying the XML source?
>> [...]
> 
> string.sub('\xmlatt{#1}{href}',2)
> idstring('\xmlatt{#1}{href}')

Many thanks for your reply, Hans.

Sorry, but I don’t get them working:

  \about[string.sub('\xmlatt{#1}{href}',2)]
  \about[idstring('\xmlatt{#1}{href}')]

It has to be something stupid, but I don’t get it.

Which is the right way to do it?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list