From: Ken A. <kan...@bb...> - 2003-09-23 21:20:12
|
I have found that programming languages that are also XML are pretty hard to use. waterlang.org is a possible exception, though its not XML either. The Ruby reflection approach is nice, you could do the same thing in Java, with a bit more work. However, you could also just have a table of tag -> transformer and simply walk the xml object applying the transformations. What Rusty and i do is transform xml into sexpressions, (see dclass/SAXexp.scm) manipulate the sexpression and transform back to xml. We just pass the sexp to a transformer and let it side effect it because we're generally adding structure, though a functional approach should work too. k At 11:15 AM 9/23/2003 -0400, Geoffrey Knauth wrote: >(from Martin Fowler's BLOG) > >http://martinfowler.com/bliki/MovingAwayFromXslt.html > >Geoffrey >-- >Geoffrey S. Knauth | http://knauth.org/gsk |