diff options
author | Hans Hagen <pragma@wxs.nl> | 2006-01-12 10:38:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2006-01-12 10:38:00 +0100 |
commit | 12edaa6671b197dc355bb301f711493bb5ad0dff (patch) | |
tree | b9b512de956dc853187dfea4e0d682f7ca92b8d3 /tex/context/base/xtag-ini.tex | |
parent | e5b96502040aa3c41bbd6a175ce4316bf21d8570 (diff) | |
download | context-12edaa6671b197dc355bb301f711493bb5ad0dff.tar.gz |
stable 2006.01.12 10:38
Diffstat (limited to 'tex/context/base/xtag-ini.tex')
-rw-r--r-- | tex/context/base/xtag-ini.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tex/context/base/xtag-ini.tex b/tex/context/base/xtag-ini.tex index 61906b621..2b9dc8aa2 100644 --- a/tex/context/base/xtag-ini.tex +++ b/tex/context/base/xtag-ini.tex @@ -2863,4 +2863,23 @@ \def\XMLyes#1{\XMLownifequalelse{#1}{yes}{#1}{}} +%D The next macro will set the variable \type {\flattenedXMLcontent} +%D to the content with elements removed and entity names. + +\bgroup + +\catcode`\<\active +\catcode`\&\active + +\gdef\flattenXMLcontent#1% we need taco's 'over one group' + {\begingroup + \def<##1>{}% + \def&##1;{##1}% + \edef\flattenedXMLcontent{#1}% + \edef\flattenedXMLcontent{\expandafter\dounspaced\flattenedXMLcontent\end}% + \@EA\endgroup + \@EA\def\@EA\flattenedXMLcontent\@EA{\flattenedXMLcontent}} + +\egroup + \protect \endinput |