diff options
author | Hans Hagen <pragma@wxs.nl> | 2009-11-01 21:24:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2009-11-01 21:24:00 +0100 |
commit | e13c1d71259b390bbacfdbe45262091754bd71bc (patch) | |
tree | aad0430edfc610c817f870bdd49c238b961ab848 /tex/context/base/lxml-tab.lua | |
parent | eab6a73597f38d58fc4d3cfc4fbddb7c3f6e1e8f (diff) | |
download | context-e13c1d71259b390bbacfdbe45262091754bd71bc.tar.gz |
beta 2009.11.01 21:24
Diffstat (limited to 'tex/context/base/lxml-tab.lua')
-rw-r--r-- | tex/context/base/lxml-tab.lua | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tex/context/base/lxml-tab.lua b/tex/context/base/lxml-tab.lua index ca22a7eec..8bd64890d 100644 --- a/tex/context/base/lxml-tab.lua +++ b/tex/context/base/lxml-tab.lua @@ -148,8 +148,8 @@ local dcache, hcache, acache = { }, { }, { } local mt = { } -function initialize_mt(root) -- we will make a xml.new that then sets the mt as field - mt = { __tostring = xml.text, __index = root } +function initialize_mt(root) + mt = { __index = root } -- will be redefined later end function xml.setproperty(root,k,v) @@ -963,7 +963,6 @@ xml.defaulthandlers = handlers xml.newhandlers = newhandlers xml.serialize = serialize xml.tostring = xmltostring -xml.text = xmltext --[[ldx-- <p>The next function operated on the content only and needs a handle function @@ -999,14 +998,6 @@ function xml.body(root) return (root.ri and root.dt[root.ri]) or root end -function xml.text(root) - return (root and xml.tostring(root)) or "" -end - -function xml.content(root) -- bugged - return (root and root.dt and xml.tostring(root.dt)) or "" -end - function xml.name(root) if not root then return "" |