[DXML-10] Support for DOCTYPE when emitting XML Created: 14/Nov/12 Updated: 14/Nov/12 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Enhancement | Priority: | Major |
| Reporter: | Thomas Greve Kristensen | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
Some consumers of XML files require an explicit DOCTYPE to accept an XML file. data.xml does not currently support the specification of doctypes when emitting XML. When XML is parsed, I believe DOCTYPEs are silently ignored, so there is no representation in the data model for them. The best design is possibly an :doctype option in clojure.data.xml/emit ? I've attached a web.xml as example. |
[DXML-13] Support for preserving whitespace between tags Created: 10/Feb/13 Updated: 10/Feb/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Enhancement | Priority: | Major |
| Reporter: | Kevin Albrecht | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
XML parsers can support preserving white space nodes, but clojure.data.xml does not seem to support this functionality. For example, the following should be able to return true (perhaps with an option to parse-str): Desired Behavior (= (clojure.data.xml/element :x {}
(clojure.data.xml/element :a {} "foo")
" "
(clojure.data.xml/element :a {} "bar"))
(clojure.data.xml/parse-str
(str "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<x>"
"<a>foo</a>"
" "
"<a>bar</a>"
"</x>")))
;=> true
This is the current behavior: Current Behavior (= (clojure.data.xml/element :x {}
(clojure.data.xml/element :a {} "foo")
(clojure.data.xml/element :a {} "bar"))
(clojure.data.xml/parse-str
(str "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
"<x>"
"<a>foo</a>"
" "
"<a>bar</a>"
"</x>")))
;=> true
|
[DXML-14] IllegalArgumentException when trying to emit a boolean value Created: 07/Mar/13 Updated: 07/Mar/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | Ed O'Loughlin | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
JRE 1.7, OS X 10.7.5, Clojure 1.4 & 1.5, data.xml 0.0.7 |
||
| Description |
|
I can create an element with a boolean value but I can't emit it...
|
[DXML-15] data.xml can't parse own output if there's a colon in an attribute name Created: 03/Apr/13 Updated: 03/Apr/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | ben wolfson | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
data.xml 0.0.7 |
||
| Description |
|
Observe: > (x/emit-str (x/element :NC {"xmlns" "http://example.com" "xmlns:xsi" "http://www.w3.org/2001/XMLSchema-instance" "xsi:schemaLocation" "http://www.example.com/schema.xsd"} (x/element :Foo {} "bar"))) (a) the xmlns and xmlns:xsi attributes have disappeared. Not the point of this issue but worth pointing out. |
[DXML-4] Namespaces support Created: 27/Mar/12 Updated: 21/Apr/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Enhancement | Priority: | Major |
| Reporter: | Carlo Sciolla | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Attachments: |
|
| Patch: | Code and Test |
| Description |
|
Add support for both parsing and emitting namespace qualified tags and namespaces URI declarations. |
| Comments |
| Comment by Ryan Senior [ 22/May/12 10:26 AM ] |
|
I don't see a contributor agreement for you Carlo. Have you signed one? http://clojure.org/contributing |
| Comment by Gary Trakhman [ 19/Jun/12 6:09 PM ] |
|
ping, is the patch still waiting for a signed CA? |
| Comment by Ryan Senior [ 26/Jun/12 12:14 PM ] |
|
Yes |
| Comment by Robert Onslow [ 01/Dec/12 5:07 AM ] |
|
Is this patch due reasonable soon? |
| Comment by Andy Fingerhut [ 21/Apr/13 7:04 PM ] |
|
Link to a design page with some ideas for XML namespace support in Clojure: http://dev.clojure.org/display/DXML/Fuller+XML+support |
[DXML-17] Embedded CDATA end tags are not properly handled Created: 19/Jun/13 Updated: 19/Jun/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | Jeff Weiss | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
user> (xml/indent-str (xml/sexp-as-element [:pre [:-cdata "foo]]>bar"]])) What's being emitted here is cdata for foobar not foo]]>bar. What needs to be done is break up the embedded ]]> so that the first two characters are in one cdata block, and the last character is in the next block. The tests are wrong, as far as I can tell. I think I have fixed the code and the tests, I just need to figure out how to run the tests and submit a patch. |
[DXML-16] Eliminate reflection in emit-cdata Created: 25/Apr/13 Updated: 25/Apr/13 |
|
| Status: | Open |
| Project: | data.xml |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Enhancement | Priority: | Minor |
| Reporter: | Andy Fingerhut | Assignee: | Ryan Senior |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
Solvable with a type hint on emit-cdata arg 'writer' |
| Comments |
| Comment by Andy Fingerhut [ 25/Apr/13 1:30 PM ] |
|
Patch dxml-16-eliminate-relfection-in-emit-cdata-patch-v1.txt dated Apr 25 2013 eliminates a couple of uses of reflection in function emit-cdata. |