data.xml

Namespaces support

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

Add support for both parsing and emitting namespace qualified tags and namespaces URI declarations.
It basically follows the underlying Java XML API in giving xmlns:foo attributes "special" treatment.

Activity

Hide
Ryan Senior added a comment -

I don't see a contributor agreement for you Carlo. Have you signed one? http://clojure.org/contributing

Show
Ryan Senior added a comment - I don't see a contributor agreement for you Carlo. Have you signed one? http://clojure.org/contributing
Hide
Gary Trakhman added a comment -

ping, is the patch still waiting for a signed CA?

Show
Gary Trakhman added a comment - ping, is the patch still waiting for a signed CA?
Hide
Ryan Senior added a comment -

Yes

Show
Ryan Senior added a comment - Yes
Hide
Robert Onslow added a comment -

Is this patch due reasonable soon?

Show
Robert Onslow added a comment - Is this patch due reasonable soon?
Hide
Andy Fingerhut added a comment -

Link to a design page with some ideas for XML namespace support in Clojure: http://dev.clojure.org/display/DXML/Fuller+XML+support

Show
Andy Fingerhut added a comment - Link to a design page with some ideas for XML namespace support in Clojure: http://dev.clojure.org/display/DXML/Fuller+XML+support
Hide
Herwig Hochleitner added a comment -

I've taken another stab at this. Attached roundtrip-documents.patch implements roundtripping, which means reading and writing xmlns attributes and namespaces as is.

Further improvements, that would fall into the scope of this ticket, but should be implemented on top of correct roundtripping, hence another ticket might be in order:

  • functionality for normalizing prefixes
  • rewriting prefixes
  • finding a minimal set of prefix names and/or default namespace, for given fragment
Show
Herwig Hochleitner added a comment - I've taken another stab at this. Attached roundtrip-documents.patch implements roundtripping, which means reading and writing xmlns attributes and namespaces as is. Further improvements, that would fall into the scope of this ticket, but should be implemented on top of correct roundtripping, hence another ticket might be in order:
  • functionality for normalizing prefixes
  • rewriting prefixes
  • finding a minimal set of prefix names and/or default namespace, for given fragment
Hide
Steve Suehs added a comment -

I could really use this. I'm tweaking poms and the xml headers with schema locations cause grief. If you are in Austin I'll buy you a beer.

Show
Steve Suehs added a comment - I could really use this. I'm tweaking poms and the xml headers with schema locations cause grief. If you are in Austin I'll buy you a beer.
Hide
Herwig Hochleitner added a comment -

Good to hear that. I've implemented a walker to resolve names in namespaced xml and have the emitter assign the prefix of a resolved name. You can review / use at your own peril from here: https://github.com/bendlas/data.xml

Right now, I'm doing cleanup passes and trying to get feedback from the before pushing for change.

Show
Herwig Hochleitner added a comment - Good to hear that. I've implemented a walker to resolve names in namespaced xml and have the emitter assign the prefix of a resolved name. You can review / use at your own peril from here: https://github.com/bendlas/data.xml Right now, I'm doing cleanup passes and trying to get feedback from the before pushing for change.

People

Vote (3)
Watch (4)

Dates

  • Created:
    Updated: