Thomas A. Schmitz wrote:
Hi Hans,

more serious: today's beta doesn't process my xml files. Too late today for a minimal example; maybe the error can give a clue:

systems         : end file vorlesung-mkiv at line 1
systems         : begin file historiker at line 1
! LuaTeX error no string to print
stack traceback:
    [C]: in function 'texsprint'
...text/tex/texmf-context/tex/context/base/lxml-ent.lua:47: in function <...text/tex/texmf-context/tex/context/base/lxml-ent.lua:37>
    [C]: in function 'match'
...text/tex/texmf-context/tex/context/base/lxml-tex.lua:498: in function '@tx@' ...text/tex/texmf-context/tex/context/base/lxml-tab.lua:751: in function '@dc@' ...text/tex/texmf-context/tex/context/base/lxml-tab.lua:774: in function 'xmlserialize' ...text/tex/texmf-context/tex/context/base/lxml-tex.lua:545: in function 'xmlsprint' ...text/tex/texmf-context/tex/context/base/lxml-tex.lua:1207: in function 'flush'
    <main ctx instance>:1: in main chunk.
\xmlflush #1->\ctxlua {lxml.flush("#1")}

\dostructurecomponent ...uctureparameter \c!title
}\xdef \currentstructurebo...
\doregisterstructurehead ... \c!command =, #2][#3]
                                                  \reportcurrentstructure
\dohandlestructurehead ...ructurehead {#1}{#2}{#3}
\let \getstructureheadsync...
l.8 }

\xmlflush #1->\ctxlua {lxml.flush("#1")}

....
l.2 \xmlprocess{\xmldocument}{./historiker.xml}{}

? ^\/Users/tas/context/tex/texmf-osx-intel/bin/context: line 2:  3064

Same file with same environment processed without problems by version: 2009.10.02 13:14

Thank goodness I still have an older version around...

in lxml-ent.lua ...

function xml.resolved_entity(str)
    local e = xml.entities[str]
    if e then
        local te = type(e)
        if te == "function" then
            e(str)
        elseif e then
            texsprint(ctxcatcodes,e)
        end
    else
texsprint(ctxcatcodes,"\\xmle{",str,"}{",utfupper(str),"}") -- we need to use our own upper
    end
end

there has been quite some changes in the xml machinery; what exactly do you do with entities?

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to