lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> I agree that this kind of "inband signalling" is not perfect. An easy
> alternative would be

Curt's original idea doesn't have this problem at all and it can't hurt to
be a bit more verbatim.  His "value" index could be renamed "content" to
hold the content array (possibly referencing the node itself if you want!)
For mixed content it would make sense to introduce special nodes (besides
element nodes) to represent entity references, cdata and comments (and
possibly processing instructions as well.)

--
Wim