[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: XMLinLua
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 4 Jul 2012 18:29:28 +0200
2012/7/4 Matthew Wild <mwild1@gmail.com>:
> On 4 July 2012 16:46, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>> bad input …. the result is probably not what the programmer intended.
>>
>> You're right, but is that a defect of my code or just an inconvenient
>> truth also known as GIGO?
>
> It's a defect in your code, if your code is meant to be taking
> arbitrary input and generating valid XML.
It isn't. Lua and XML are both too rich to make that a design option.
My code is meant to take the tedium and unreadability out
of writing XML files in situations where the target is a well-behaved
subset of XML like CSL (Citation Speciification Language).
The actual application (I'm not there yet) is a BST to CSL converter.