ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Ctx & XML
@ 2014-12-10 22:08 Lukáš Procházka
  2014-12-11  1:24 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Lukáš Procházka @ 2014-12-10 22:08 UTC (permalink / raw)
  To: ConTeXt

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:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-11 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-10 22:08 Ctx & XML Lukáš Procházka
2014-12-11  1:24 ` Hans Hagen
2014-12-11  7:33   ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-12-11  9:10     ` Hans Hagen
2014-12-11 11:25       ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-12-11 13:09         ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).