[NTG-context] \xmlchainatt behaviour

2016-11-11 Thread Meer, Hans van der
I might be doing wrong, but for now I have the strong impression that 
\xmlchainatt is at fault. It does not break the callchain as soon as a match is 
found.
Also according the manual xml-mkiv, \xmlchainatt{#1}{testx}{no-test} should 
return "no-test" but returns nothing. I would very much helped if these macros 
react is I thin they should.
Is this my fault?

Hans van der Meer

Minimal example

% test chainttribute failure.
\startxmlsetups demo:chainatt
\xmlsetsetup{#1}{root|node|innernode}{demo:chainatt:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:chainatt}
\startxmlsetups demo:chainatt:root
root: xmlatt  = <\xmlatt{#1}{test}>\crlf
root: xmlchainatt  = <\xmlchainatt{#1}{test}>\crlf
\xmlall{#1}{*}
\stopxmlsetups
\startxmlsetups demo:chainatt:node
-- node: xmlatt test = <\xmlatt{#1}{test}>\crlf
-- node: xmlchainatt  = \xmlchainatt{#1}{test}\crlf
-- node: xmlchainattdef  = 
\xmlchainattdef{#1}{notest}{no-test}\crlf

\stopxmlsetups
\startxmlsetups demo:chainatt:innernode
 innernode: xmlatt test = <\xmlattdef{#1}{test}{nono}>\crlf
 innernode: xmlchainatt  = \xmlchainatt{#1}{test}\crlf
\stopxmlsetups
\startbuffer[chainatt]

  

  

\stopbuffer
\starttext
\ConTeXt-version=\contextversion\blank
Manual on xml-mkiv page 22 on \tex{xmlchainatt} reads:
returns the value of attribute NAME or empty if no such attribute exists; 
backtracks till a match is found\blank
\xmlprocessbuffer{demo}{chainatt}{}\blank
However, does not stop when backtracking finds "a match".
\stoptext






xml-tex-chainattribute.pdf
Description: xml-tex-chainattribute.pdf
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] table and \setuptables questions

2016-11-11 Thread Csikos Bela
Dear list members:

I have this simple table:

\starttext
\placetable[here]{title}{
\setuptables[bodyfont=8pt,rulethickness=0.04em]
\start
\setuplocalinterlinespace[2.2ex]
\starttable[|lp(5cm)|lp(5cm)|cp(2cm)|]
\HL[2]
\NC \bf First Column \NC \bf Second Column \NC \bf Third Column \NC \SR
\HL
\NC Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. \NC Lorem ipsum dolor sit amet, 
consectetur adipiscing elit. \NC Lorem ipsum \NC \SR
\HL
\NC Pellentesque habitant morbi tristique senectus et netus
\NC Pellentesque habitant morbi tristique senectus et netus \NC Pellentesque 
\NC \SR
\HL
\NC Donec nunc lorem, sollicitudin vel sodales eget \NC Donec nunc lorem, 
sollicitudin vel sodales eget Donec nunc lorem, sollicitudin vel sodales eget 
\NC Donec \NC \SR
\HL[2]
\stoptable
\stop}
\stoptext

I have some questions related to the above table.

1. How can I set the distance between the text (in rows) and the rule above and 
 below the text, separately?
I find that the rules are too close to the text. I tried \setuptables' height 
and depth options but those are
not what I need, I guess. What are height and depth options are for exactly?

2.  Can \setuptables[bodyfont=...] option use font sizes as \tfa, \tfb, \tfc, 
\tfx, \tfxx, or point size has to be
set explicitly? 

3. What is the distance option in \setuptables?

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___