From: Taco Hoekwater <taco@elvenkind.com>
Subject: xtag-ini.tex patch
Date: Fri, 21 Jun 2002 14:00:46 +0200 [thread overview]
Message-ID: <20020621140046.6fae57ae.taco@elvenkind.com> (raw)
Hi Hans, all,
This is a speed patch for the XML attribute parser:
\unprotect
\long\def\doparseXMLarguments#1% space goes ok
{\if#1>%
\let\dodoparseXMLarguments\empty
\else\if#1/%
\chardef\kindofXMLelement\emptyXMLtag
\else
\XMLtoks{#1}%
\let\dodoparseXMLarguments\dodoparseXMLargumentsX
\fi\fi%
\dodoparseXMLarguments}
\def\dodoparseXMLargumentsX#1=#2{%
\edef\@@XMLname{\the\XMLtoks#1}%
\@EA\getXMLNSSSS\@@XMLname :\relax
\XMLtoks\emptytoks
\if#2"%
\let\dodoparseXMLarguments\dodoparseXMLargumentsD
\else
\let\dodoparseXMLarguments\dodoparseXMLargumentsS
\fi
\dodoparseXMLarguments
}
\def\gobblecolon#1:{#1}
\def\getXMLNSSSS#1:#2\relax{%
\def\testc{#2}%
\ifx\empty\testc \else
\edef\@@XMLname{\gobblecolon #2}%
\XMLnamespacetrue
\edef\@@XMLspac{#1}%
\fi
}
\protect
--
groeten,
Taco
next reply other threads:[~2002-06-21 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-21 12:00 Taco Hoekwater [this message]
2001-06-21 14:11 ` Hans Hagen
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=20020621140046.6fae57ae.taco@elvenkind.com \
--to=taco@elvenkind.com \
/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).