summaryrefslogtreecommitdiff
path: root/tex/context/base/xtag-ini.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2005-05-25 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2005-05-25 00:00:00 +0200
commit7791a6c6b224e5ec3c1a40489e231c887a8864fa (patch)
treef38992e333d212fe5ab14d23ae5e31ff7a73ab8c /tex/context/base/xtag-ini.tex
parentc8cc55cfd81ec71e266cef774271a0fb56d73726 (diff)
downloadcontext-7791a6c6b224e5ec3c1a40489e231c887a8864fa.tar.gz
stable 2005.05.25
Diffstat (limited to 'tex/context/base/xtag-ini.tex')
-rw-r--r--tex/context/base/xtag-ini.tex11
1 files changed, 7 insertions, 4 deletions
diff --git a/tex/context/base/xtag-ini.tex b/tex/context/base/xtag-ini.tex
index aa5132c8f..49104030a 100644
--- a/tex/context/base/xtag-ini.tex
+++ b/tex/context/base/xtag-ini.tex
@@ -2487,13 +2487,16 @@
\defineXMLsingular [gobblespacetokens] {\gobblespacetokens}
\defineXMLsingular [disableXML] {\disableXML}
-\def\XMLstr#1%
+\long\def\XMLstr#1%
{{\enableXML\scantokens{#1}\unskip}}
-\def\XMLstr#1% test
- {\scantokens{\begingroup\enableXML#1<endgroup/>\gobblespacetokens}}
+\long\def\XMLstr#1% test, does not work
+ {\begingroup\enableXML\scantokens{#1<endgroup/><gobblespacetokens/>}}
-\def\XMLstrpar#1#2#3% test
+\def\XMLgetvariable#1#2% hooks into generic \getvariable and setvariables
+ {\expanded{\XMLstr{\getvariable{#1}{#2}}}}
+
+\long\def\XMLstrpar#1#2#3% test
{\ifcsname\@@XMLvariable:#1:#2\endcsname
\scantokens\@EAEAEA{\@EA\begingroup\@EA\enableXML
\csname\@@XMLvariable:#1:#2\endcsname<endgroup/>}%