This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Different define-xml-namespace behavior in servlet versus REPL
- From: pingouin21 at netscape dot net
- To: kawa at sources dot redhat dot com
- Date: Fri, 26 Oct 2007 13:20:58 -0400
- Subject: Different define-xml-namespace behavior in servlet versus REPL
I can't see that I'm doing anything wrong.
Here's the REPL:
#|kawa:1|# (require 'xml)
#|kawa:2|# (define-xml-namespace svg "http://www.w3.org/2000/svg")
#|kawa:3|# (define markup (as-xml (svg:svg width: 467 height: 462)))
#|kawa:4|# markup
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="467"
height="462" />
Here was a quick attempt at a "Hello World" servlet (it was compiled,
then run in a webapp on Tomcat 5.0.28):
(require 'http)
(require 'xml)
(response-content-type 'application/xml)
(define-xml-namespace svg "http://www.w3.org/2000/svg")
(svg:svg width: 467 height: 462)
#\newline
What got output from the servlet was badly-formed XML:
<http://www.w3.org/2000/svg:svg xmlns:http://www.w3.org/2000/svg="svg"
width="467" height="462"></http://www.w3.org/2000/svg:svg>
Am I doing something wrong, or is this a bug?
________________________________________________________________________
Check Out the new free AIM(R) Mail -- Unlimited storage and
industry-leading spam and email virus protection.