diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-10-24 16:44:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-10-24 16:44:00 +0200 |
commit | 6d2fb7fe9f25e756d84151959c84aa56a3046f4e (patch) | |
tree | e9ee39539991b2df49e77b9618ecd100c8757549 /tex/context/base/lxml-tab.lua | |
parent | f89395483bb5154004626768dfcee7316254b1fa (diff) | |
download | context-6d2fb7fe9f25e756d84151959c84aa56a3046f4e.tar.gz |
beta 2009.10.24 16:44
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r-- | tex/context/base/lxml-tab.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua index 88803ab16..97716a1c0 100644 --- a/tex/context/base/lxml-tab.lua +++ b/tex/context/base/lxml-tab.lua @@ -347,7 +347,11 @@ local function handle_any_entity(str) if resolve then local a = acache[str] -- per instance ! todo if not a then - a = entities[str] + if type(resolve) == "function" then + a = resolve(str) or entities[str] + else + a = entities[str] + end if a then if trace_entities then logs.report("xml","resolved entity &%s; -> %s (internal)",str,a) |