Re: [NTG-context] removing # in XML identifiers

2015-05-07 Thread Pablo Rodriguez
On 05/07/2015 11:44 PM, Hans Hagen wrote: > [...] > \startxmlsetups xml:a > \cldcontext{string.sub([[\xmlatt{#1}{href}]],2)} > % next beta (more efficient): > % \xmlrefatt{#1}{href} > \stopxmlsetups Many thanks for your reply and the improvement, Hans. Pablo -- http://www.ousia.t

Re: [NTG-context] removing # in XML identifiers

2015-05-07 Thread Hans Hagen
On 5/6/2015 9:38 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startbuffer[demo] the previous section \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \sta

Re: [NTG-context] removing # in XML identifiers

2015-05-07 Thread Pablo Rodriguez
On 05/06/2015 10:49 PM, Thomas A. Schmitz wrote: > On 05/06/2015 09:38 PM, Pablo Rodriguez wrote: >> How could I get the following command working? >> >> \ctxlua{tex.print(string.sub(context("\\xmlatt{#1}{href}"),2))} > > I'm not sure that this will ever work - you're mixing and nesting lua

Re: [NTG-context] removing # in XML identifiers

2015-05-06 Thread Thomas A. Schmitz
On 05/06/2015 09:38 PM, Pablo Rodriguez wrote: How could I get the following command working? \ctxlua{tex.print(string.sub(context("\\xmlatt{#1}{href}"),2))} I'm not sure that this will ever work - you're mixing and nesting lua and tex code in a messy way. My suggestion would be: if you

[NTG-context] removing # in XML identifiers

2015-05-06 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] the previous section \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{a}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:a \ctxlua{context("\\xmlatt{#1