ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Lukáš Procházka" <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: Ctx & XML
Date: Wed, 10 Dec 2014 23:08:10 +0100	[thread overview]
Message-ID: <op.xqoafwn7f14xzu@lkzd-2013> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2014-12-10 22:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10 22:08 Lukáš Procházka [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.xqoafwn7f14xzu@lkzd-2013 \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).