[NTG-context] TeX in \xmlsetentity and DTDs in DOCTYPEs

Hans Hagen pragma at wxs.nl
Mon Jan 18 22:26:44 CET 2016

On 1/18/2016 2:30 PM, Thomas A. Schmitz wrote:
> On 01/17/2016 07:24 PM, Hans Hagen wrote:
>> it should work in the in beta now
> Hi Hans,
> now I have a problem :-) What should take precedence if an entity is
> both defined in the dtd and as a \xmltexentity? The way I see it, the
> latter: e.g., in the DTD, I might declare something for use in a browser
> but require a different solution when typesetting with ConTeXt. The
> latest and greatest now takes my DTD definitions instead of the
> \xmltexentities, which did not happen before. Is that an unwanted side
> effect or the new default?

i already feared that ...

% \disabledirectives[lxml.entities.escaped]
% \disabledirectives[lxml.entities.prefertex]



<?xml version="1.0"?>
<!DOCTYPE blah SYSTEM "blah.dtd" [
      <!ENTITY oeps "indeed">
      <!ENTITY more " ">
     Random text with an entity: &oeps; test & test

     Random text with an entity: &more; test

\startxmlsetups xml:testsetups


\startxmlsetups xml:text


i still wonder what happens in tuc files (roundtrip mess)

beta coming


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl

More information about the ntg-context mailing list