4 Dec
2006
4 Dec
'06
2:53 p.m.
Hello, I use the following code to format xml tables with context. There I want to exchange the meanings of align=[left|right], but I failed so using \mapXMLvalue. Any Ideas? Yours, Karsten \usemodule[contml] \autoXMLnamespace [context] \starttext \mapXMLvalue {p:align} {right} {left} \mapXMLvalue {p:align} {left} {right} \defineXMLenvironment [p] {\startalignment[\XMLop{align}]} {\stopalignment} \setupTABLE[column][each][width=8em] \startXMLdata <table> <tr> <td><p align="center">center</p></td> <td><p align="left">left</p></td> <td><p align="right">right</p></td> </tr> </table> \stopXMLdata \stoptext