Hello.

In clojure-contrib 1.2, lazy-xml/emit outputs XML in most cases.
However, if it gets HTML or similar format data, the output format is
switched to HTML.
That makes some differences at least on OpenJDK6.

1. In XML mode, output doesn't contain any extra \n if :indent is
skipped. In HTML mode, it contains.

2. In HTML mode, the XML declaration is skipped.

3. In HTML mode, extra <META http-equiv="Content-Type"
content="text/html; charset=(encoding)"> is inserted automatically.

I think that really harmful thing is only 3. because the output is
always invalid XML with unnecessary data, but all of them surprise me,
anyway.

Is this an intended behavior?

If not, inserting (.setOutputProperty trans "method" "xml") around
144-156 may fix it.
I'm sorry if it is already fixed on the repository.

Thank you.

-- 
Name:  OGINO Masanori (荻野 雅紀)
E-mail: masanori.og...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to