summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/meta-xml.mkii
blob: 71708a0f9a5e90d8695f22f559e40d9226df7c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%D \module
%D   [       file=meta-xml,
%D        version=2002.11.27,
%D          title=\METAPOST\ Graphics,
%D       subtitle=XML Hacks,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{MetaPost Graphics / XML Hacks}

%D When we are dealing with XML, we need to make sure that
%D \METAPOST\ knows about it. The next macro expands its
%D argument (think of widget XFDF) into \type {\getXMLentity}
%D calls.

\unprotect

\def\setMPtextXML#1#2%
  {\bgroup
   \enableXML
   \expanded{\defconvertedcommand\noexpand\ascii{#2}}%
   \expanded{\egroup\noexpand\dodoglobal\noexpand\setvalue{\@@MPT#1}{\ascii}}}

\protect \endinput