Community
Participate
Working Groups
Need to add namespace support to the VEX model.
*** Bug 257804 has been marked as a duplicate of this bug. ***
Just some implementation hints: * the implementation MUST be conform with http://www.w3.org/TR/xml-names/ * attributes should be managed by an own class 'Attribute' * 'Attribute' should have members for namespace URI, prefix and local name * 'Element' should get new members for namespace URI, prefix and local name of the represented XML element * 'Element' should also manage the namespace declarations wihtin its start tag * the resolution of prefix/namespace URI mappings should be done through recursive method calls within the 'Element' object graph
More about handling the prefix/namespace URI mappings: * 'DocumentBuilder' should implement 'startPrefixMapping' and put information about namespace declarations into the 'Element' they belong to. * To resolve a prefix/namespace URI mapping, 'Element' should implement getPrefix(namespaceURI) and getNamespaceURI(prefix). If an 'Element' does not contain the corresponding namespace declaration itself, the method calls are forwarded to its parent 'Element'.
The connection between CSS and namespaces is specified here: http://www.w3.org/TR/css3-namespace/
A first draft is available on vex-dev. The DOM is now fully namespace aware. The whole namespace thing will first get interesting when the Schema support is also in place.
Moved to Mylyn Docs Vex.
Finally implemented the UI part.