At 09:58 PM 2/8/2002 +0100, Simon Pepping wrote:
>\defineXMLpush actually makes its definition when the pushed element
>occurs. When a parent element defines a group, then the pushed element
>is not visible outside that group. In \TeX\ this problem is usually
>solved by doing a \gdef. Perhaps this problem can be solved in the
>same manner, by providing a \gdefineXMLpush.

Btw, push is now save (more correct name, but push will be available for 
backward comp)

In xtag-ini search for \redoXMLsave and add:

\long\gdef\dododefineXMLgsave#1%
   {\letvalue{\@@XMLdata:#1}\longempty
    \long\setvalue{\@@XMLelement:#1/}{\long\setgvalue{\@@XMLdata:#1}{}}%
    \long\setvalue{\@@XMLelement:#1}{\redoXMLgsave{#1}}}

\gdef\redoXMLgsave#1%
   {\long\@EA\def\@EA\next\@EA##\@EA1\@EA<\@EA/\currentXMLelement>%
      {\long\@EA\gdef\csname\@@XMLdata:#1\endcsname{##1}}%
    \next}

regenerate the format and off you go. [this macro looks awful, which is due 
to dynamic namespace mapping]

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------

Reply via email to