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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to