[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

LUA Table to XML via XSL

Subject: LUA Table to XML via XSL
From: Alain <alainb06@xxxxxxx>
Date: Wed, 18 Feb 2009 07:39:38 +0100
 LUA Table to XML via XSL
Hello experts,

I'd like to convert a LUA table to an equivalent in XML.

Here is what a sample of a LUA table :

o;?LuaTable = {
["Item1"] = 8.52,
["Item2"] = "String",
["Item3"] = {
["Child1"] = 4.5,
["Child2"] = {
["GranChild"] = "That's all folks!\n"
["Child3"] = "With UTF-8: en franC'ais",
} -- this is a comment

Ouput could be

<GranChild>That's all folks!\n</GranChild>
<Child3>With UTF-8: en franC'ais</Child3>
</LuaTable> <!-- this is a comment -->

I'll eventually manage to transform that but my question is:

- Do you know if such a transformation already exists (and is available), or some generic interpreter such as the equivalent of YACC ?

And as final remark: I'm aware it's quite dumb to do that this way (with XSL), it would be much simpler to use LUA to access the table and pick a LUA-XML library to write the output to a file, but that would require I learn a bit of LUA... which I'll eventually do.

Best Regards. Alain BENEDETTI

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.