ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* exchanging xml values
@ 2006-12-04 14:53 Karsten Heymann
  0 siblings, 0 replies; only message in thread
From: Karsten Heymann @ 2006-12-04 14:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-04 14:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-04 14:53 exchanging xml values Karsten Heymann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).