Johannes Graumann wrote:
Hans Hagen wrote:
in core-sys.tex, replace:
\ifx\disableXML\undefined \let\disableXML\relax \fi
\def\loadsystemfiles {\reportprotectionstate \readsysfile\f!newfilename {\showmessage\m!systems2\f!newfilename}% \donothing \readsysfile\f!oldfilename {\showmessage\m!systems2\f!oldfilename}% \donothing \loadallsystemfiles\f!filfilename \donothing \loadallsystemfiles\f!sysfilename {\loadallsystemfiles{\f!sysfilename.rme}\donothing % new, fall back \doglobal\appendtoks \bgroup \disableXML \loadallsystemfiles\f!errfilename\donothing \egroup \to\everygoodbye}}
I have appended this to core-sys.tex (just before the final '\protect \endinput'; latest version of 11.5.) and used 'texexec.rb --make'. I get the same error - even for a document containing nothing but this:
\defineXMLenvironment [document] {\starttext} {\stoptext} \startXMLdata <document></document> \stopXMLdata
How do we proceed from here?
\defineXMLenvironment [document] {\starttext} {\stoptext} \starttext \startXMLdata <document></document> \stopXMLdata \stoptext does that work ok? in your example, you stay inside a group and then end the doc \starttext \processXMLfilegrouped{somedoc} \stoptext is ok, as is texexec somedoc.xml which wraps the xml processing in a run file Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------