Some further observations in comparing code:

In the newer source one finds lxml-tab.lua:
local function handle_any_entity(str)
....
            if a then
if type(a) == "function" then
    ...
    a = a(str) or ""
end
                a = lpegmatch(parsedentity,a) or a
...
            else

versus in the old code:
            if a then
            ...
                a = lpegmatch(parsedentity,a) or a
            else

I cannot easily see through this code, but is it possible that here the cause of not processing ' and friends correctly can be found?

Hans van der Meer


On 4 jul 2011, at 21:14, Hans van der Meer wrote:


On 4 jul 2011, at 20:51, Wolfgang Schuster wrote:


Am 04.07.2011 um 20:42 schrieb Hans van der Meer:

On 4 jul 2011, at 20:04, Wolfgang Schuster wrote:

Is the entity defined?

To create one there are two commands available:

- \xmlsetentitiy{…}{…}
- \xmltexentitiy{…}{…}

This seems curious to me. I searched for "xmlsetent" (suspecting a misspelling here) but the string is nowhere found in the ConTeXt base directory. Shouldn't it be there if is meant to be used? Or is it defined somewhere else?

lxml-ini.mkiv



Indeed, some quirk in the searchpath of my BBEdit editor, I found out. Got it now.

But there stays the question why the stand &---: patterns of XML are not standard set in the ConTeXt source.

I compared the two sources. The newer, not working version has:
char-ent.lua, line 694: ["apos"] = "'", -- U+00027

Is it possible this (I see char-ent.lua being added) has ruined the previous behaviour?

Hans van der Meer

___________________________________________________________________________________
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
___________________________________________________________________________________