bugKawa - Bugs: bug #24037, xml namespace prefix and namespace...

 
 

bug #24037: xml namespace prefix and namespace uri swapped in output from compiled code

Submitted by:  None
Submitted on:  Mon 11 Aug 2008 01:52:23 PM UTC  
 
Category: XML relatedSeverity: 3 - Normal
Item Group: Unexpected resultStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 11 Aug 2008 08:57:09 PM UTC, comment #1:

Ooops. That was embarrassing. Fixed.
(And thanks for the kudos!)

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 11 Aug 2008 01:52:23 PM UTC, original submission:

this is with svn rev. 6133 on Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) on linux/x86:

hbu@portnoy:~$ cat xmltest.scm
(require 'xml)

(define-xml-namespace test1 "http://www.nil.at/test1")

(test1:foo
(test1:bar :bla 99 "hello")
(test1:baz :foo 33 "world"))
#\newline
hbu@portnoy:~$

if i run this with the interpreter, everything looks good:

hbu@portnoy:~$ java -cp src/kawa/kawa-1.9.3.jar kawa.repl --output-format xml -f xmltest.scm
<test1:foo xmlns:test1="http://www.nil.at/test1"><test1:bar bla="99">hello</test1:bar><test1:baz foo="33">world</test1:baz></test1:foo>
hbu@portnoy:~$

but when i compile it:

hbu@portnoy:~$ java -cp src/kawa/kawa-1.9.3.jar kawa.repl --output-format xml --main -C xmltest.scm
(compiling xmltest.scm to xmltest)
hbu@portnoy:~$
hbu@portnoy:~$ java -cp src/kawa/kawa-1.9.3.jar:. xmltest
<http://www.nil.at/test1:foo xmlns:http://www.nil.at/test1="test1"><http://www.nil.at/test1:bar bla="99">hello</http://www.nil.at/test1:bar><http://www.nil.at/test1:baz foo="33">world</http://www.nil.at/test1:baz></http://www.nil.at/test1:foo>
hbu@portnoy:~$

this also happens when i compile it as a servlet.

tnx for making kawa - it's by far the most pleasant way to program in a java environment!

bye,
hans bulfone <hans.bulfone@etel.at>

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 Aug 2008 08:57:09 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1