summaryrefslogtreecommitdiff
path: root/tex/context/base/lxml-dir.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/lxml-dir.lua')
-rw-r--r--tex/context/base/lxml-dir.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/tex/context/base/lxml-dir.lua b/tex/context/base/lxml-dir.lua
index 48c0ac41e..3c68664ae 100644
--- a/tex/context/base/lxml-dir.lua
+++ b/tex/context/base/lxml-dir.lua
@@ -24,13 +24,12 @@ local formatters = string.formatters
-- <directive attribute='cdx' value="*" element="cals:table" setup="cdx:cals:table:*"/>
-- </directives>
-local lxml = lxml
-local context = context
+local lxml, context = lxml, context
-local getid = lxml.getid
+local getid = lxml.getid
-local directives = lxml.directives or { }
-lxml.directives = directives
+lxml.directives = lxml.directives or { }
+local directives = lxml.directives
local report_lxml = logs.reporter("xml","tex")
@@ -107,11 +106,9 @@ directives.handle = handle_setup
function directives.setup(root,attribute,element)
handle_setup('setup',root,attribute,element)
end
-
function directives.before(root,attribute,element)
handle_setup('before',root,attribute,element)
end
-
function directives.after(root,attribute,element)
handle_setup('after',root,attribute,element)
end