Hello,

I'm having problem using LuaXml library with Ctx, both using Lua ver. 5.2.

LuaXml works fine with Lua standalone programs/scripts;
but something weird occurs when used from within Ctx (e.g. a .xml file can be read 
successfully from standalone Lua with LuaXml lib; but the same code doesn't give 
the desired result when used in combination with Ctx; a problem might be version 
mismatch - I'm still using both Lua 5.1 and 5.2 including 3rd party modules in my 
scripts - but my latest tests with Ctx & LuaXml should have avoid this; or 
namespace mismatch...?).

Anyway, does native Ctx XML API (has it its own namespace, like 'context.xml'?) provide a 
function to load a .xml file and to return its XML tree as a table, with nodes (as a 
table with node attributes as table members) in a proper sequence... something like 
LuaXml's 'xml.load("file.xml")' does?

Or how to achieve this in a best way under Ctx: XML file -> Lua table/tree?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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

Reply via email to