Re: [NTG-context] xml attribute trickery possible?

2013-05-07 Thread Hans Hagen

On 5/6/2013 1:53 PM, Meer, H. van der wrote:


In the xml setup one may call a command on the current node like:

\startxmlsetups xam:define:get
   \xmlcommand{#1}{}{xmlcommon:whatever}
\stopxmlsetups

The current node will have attributes and these can be used in the execution of 
the command xmlcommon:whatever.
The question is the following: I would like to change/addto the attributes on 
the current node, for example to supply missing defaults. Is this possible and 
if yes, how to?


there is no helper for this (one can make one using lua); acting on 
different values of attributes is often done with the value mapper macros


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] xml attribute trickery possible?

2013-05-06 Thread Meer, H. van der

In the xml setup one may call a command on the current node like:

\startxmlsetups xam:define:get
  \xmlcommand{#1}{}{xmlcommon:whatever}
\stopxmlsetups

The current node will have attributes and these can be used in the execution of 
the command xmlcommon:whatever.
The question is the following: I would like to change/addto the attributes on 
the current node, for example to supply missing defaults. Is this possible and 
if yes, how to?

Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___