[REBOL] Re: DOM Level 3 implementation in REBOL: evaluators sought
From: rudolf::meijer::telenet::be at: 13-Mar-2008 19:40
Thanks for the compliment but wait till you see it :-) (do you want a
copy?).
My implementation is DTD based and has certain (hopefully not too serious)
restrictions for efficiency reasons. But I have sought to do almost all the
checks that are indicated in the recommendations. It was fun, actually, and
REBOL is the ideal vehicle for such manipulations.
The interfaces, as packed with a testing harness (GUI) are not encapped in
the REBOL sense, they are made into a self-extracting executable with
XPackerX.
The reason is that I in a first round, I wanted to address the XML community
mainly (I have also published on news:comp.text.xml) and did not want to
bother people with 13 source files (including RebGUI). If this project
stands up under testing, I may decide to publish the source.
Some of the techniques are quite interesting, in fact I found myself using
parse for a variety of manipulations that in a previous life (before I knew
REBOL) I would have solved differently. A simple example: the spec says that
XML attribute values that are not of CDATA type should be normalized by
removing leading and trailing spaces and collapsing multiple spaces to
single ones. This is accomplished by the one-liner
attr-value: form parse attr-value none
Beat that, you other languages!
Rudolf