Hans, I'm just not getting it ... can't find the appropriate documentation maybe? http://www.pragma-ade.nl/general/manuals/example.pdf is all I got and e.g. "XMLop" does not show up at all in there ... I tryed to get this working (just trial and error), but I just don't understand ... can you kick me some more into the right direction? \mapXMLvalue {list:packed} {yes} {packed} \mapXMLvalue {list:packed} {no} {unpacked} \mapXMLvalue {list:setup} {\XMLpar{list}{setup}{}} {setup} \defineXMLenvironment [list] [packed=no,setup=1] {% \startitemize[% \XMLval{list:setup}{\XMLop{setup}}{}, \XMLval{list:packed}{\XMLop{packed}}{} ]% }% {\stopitemize} Likly many a thing doesn't make sense at all - I just don't get it. Any hint is highly appreciated, Joh Hans Hagen wrote:
Johannes Graumann wrote:
Thanks so mutch for this! Do you see any way of generalizing the "XMLifequalelse{list}{setup}{n}" part? Could I just have the argument of "<list setup="whatever">" handed thtough to ConTeXt rather than writing if-loops for n,a,A,KA,r,R,KR,m,g,G,1,2,3,4,5,6,7,8?
that's what mapXMLvalue is for
Hans
-- +----------------------------------------------------------------------+ | Johannes Graumann, Dipl. Biol. | | | | Graduate Student Tel.: ++1 (626) 395 6602 | | Deshaies Lab Fax.: ++1 (626) 395 5739 | | Department of Biology | | CALTECH, M/C 156-29 | | 1200 E. California Blvd. | | Pasadena, CA 91125 | | USA | +----------------------------------------------------------------------+