From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: processing xml with lua
Date: Tue, 05 Mar 2013 10:16:53 +0100 [thread overview]
Message-ID: <5135B805.9010805@uni-bonn.de> (raw)
In-Reply-To: <5135B3B3.8030407@wxs.nl>
On 03/05/2013 09:58 AM, Hans Hagen wrote:
> lookuptable[mytype] = mytype .. " = " .. myvalue
> inspect(lookuptable)
>
> the .. triggers a tostring on myvalue which in turn serializes the xml
>
> lookuptable[mytype] = { mytype = myvalue }
>
> would keep myvalue as xml node
Hans, thanks a lot, the explanation makes sense, but your suggestion is
not yet clear enough for me: how would I then process the node?
context(lookuptable[mytype]["mytype"])
gives again the serialized xml.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-03-05 9:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-26 12:23 Schmitz Thomas A.
2013-02-26 12:54 ` Hans Hagen
2013-02-26 13:32 ` Schmitz Thomas A.
2013-03-05 8:47 ` Thomas A. Schmitz
2013-03-05 8:58 ` Hans Hagen
2013-03-05 9:16 ` Thomas A. Schmitz [this message]
2013-03-05 10:11 ` Hans Hagen
2013-03-05 10:27 ` Thomas A. Schmitz
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=5135B805.9010805@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).