ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Karsten Heymann" <karsten.heymann@googlemail.com>
Subject: exchanging xml values
Date: Mon, 4 Dec 2006 15:53:47 +0100	[thread overview]
Message-ID: <d0f4811b0612040653n4873c92cl897bb18942962b86@mail.gmail.com> (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

                 reply	other threads:[~2006-12-04 14:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0f4811b0612040653n4873c92cl897bb18942962b86@mail.gmail.com \
    --to=karsten.heymann@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).