summaryrefslogtreecommitdiff
path: root/tex/context/base/lxml-tex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/lxml-tex.lua')
-rw-r--r--tex/context/base/lxml-tex.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tex/context/base/lxml-tex.lua b/tex/context/base/lxml-tex.lua
index 0c58a47cc..c1aea3853 100644
--- a/tex/context/base/lxml-tex.lua
+++ b/tex/context/base/lxml-tex.lua
@@ -518,6 +518,16 @@ function lxml.include(id,pattern,attribute,options)
stoptiming(xml)
end
+function lxml.includedfrom(id)
+ local x = getid(id)
+ local f = x and x.__f__
+ if f then
+ context(f)
+ else
+ -- maybe some message
+ end
+end
+
function lxml.save(id,name)
xml.save(getid(id),name)
end