This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: make-element children
- From: Per Bothner <per at bothner dot com>
- To: Jim White <jim at pagesmiths dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Tue, 27 Aug 2002 15:15:26 -0700
- Subject: Re: make-element children
- References: <3D6BE1A7.2080606@pagesmiths.com>
Jim White wrote:
Hi Per.
I was using make-element to generate XML output with lists of children.
Unfortunately the only two ways I found to make it work was to either
do everything with macros or to use apply. Neither is quite satisfying,
and mixing the two is ugly. Although perhaps there would be something I
could do with the macros and currying make-element?
Try using define-namespace and possibly setting --output-format:
$ java kawa.repl --output-format xml
#|kawa:1|# (define-namespace xsd "http://www.w3.org/2001/XMLSchema")
#|kawa:2|# (xsd:schema (xsd:element 'x) "stuff")
<xsd:schema><xsd:element>x</xsd:element>stuff</xsd:schema>
define-namespace doesn't appear to be in the manual. Oops.
Well, it isn't fully implemented, as I don't believe it works
lexically, like it should.
You might also want to experiemnt with KRL:
http://www.gnu.org/software/kawa/KRL.html
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/