On Thu, Feb 19, 2009 at 12:20 AM, Stephan Mühlstrasser
<stephan.muehlstras...@web.de> wrote:
>
> Hi,
>
> I believe the following is a bug in clojure.contrib.lazy-xm:
>
> user=> (use 'clojure.contrib.lazy-xml)
> nil
> user=> (emit { :tag :a, :attrs { :b "bloody apostrophe's :-)" }})
> <?xml version='1.0' encoding='UTF-8'?>
> <a b='bloody apostrophe's :-)'/>
> nil
>
> The XML is broken, because the embedded apostrophe in attribute b is
> not replaced with an XML entity.
>

While we're on this subject, I wonder why attribute values are
single-quoted in the first place?

I know it is standards compliant, and won't claim to have vast
experience working with XML, but I've never seen this 'in the wild'.


Regards,
Isak

--~--~---------~--~----~------------~-------~--~----~
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
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