Bug 160567 - [emfWorkbench] Translator framework does not support namespace prefixes
Summary: [emfWorkbench] Translator framework does not support namespace prefixes
Status: NEW
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Carl Anderson CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-10-11 17:25 EDT by Paul Fullbright CLA
Modified: 2009-07-14 09:26 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Fullbright CLA 2006-10-11 17:25:28 EDT
If you want to use the translator framework, you are currently tied to using no prefixes for the document.

In other words, you are tied to documents of the form:

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar id="ejb-jar_ID" version="2.1" 
    xmlns="http://java.sun.com/xml/ns/j2ee"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>TestJpaEjbProject</display-name>
	...

And cannot support documents of the form:

<?xml version="1.0" encoding="UTF-8"?>
<ejb:ejb-jar id="ejb-jar_ID" version="2.1" 
    xmlns:ejb="http://java.sun.com/xml/ns/j2ee"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <ejb:display-name>TestJpaEjbProject</ejb:display-name>


These are valid xml documents that may be required to be in this form by certain users, and there should be a story for how to support them.
Comment 1 Jesper Moller CLA 2006-11-19 17:33:29 EST
It turns out I will also need this for the Mule IDE which I'm working on.

So, if I provide a patch and a test case in the M4 timeframe, will there be
someone to review and possibly commit it?

See also bug 160569 and bug 164246.

Comment 2 Chuck Bridgham CLA 2007-02-15 14:13:30 EST
Changing target to M6
Comment 3 Carl Anderson CLA 2007-03-27 17:08:40 EDT
Still no patch or test case... I am decommitting this for 2.0
Comment 4 Shaun Smith CLA 2009-07-08 15:06:33 EDT
I've just run into this bug with Teneo and Dali 2.2 (Galileo).  Teneo generates JPA mapping files using a namespace and due to Dali's reliance on the translator framework it cannot read the generated files.

I don't understand Carl's request for a test case as I think Paul provided enough info to reproduce this.  Given his comments I'm going to read "helpwanted" as "not gonna fix it". Is this a reasonable assumption? :-)
Comment 5 Paul Fullbright CLA 2009-07-08 15:31:29 EDT
I believe he was referring to the fact that Jesper had mentioned providing a patch and test case.
Comment 6 Carl Anderson CLA 2009-07-14 09:16:30 EDT
Shaun,

While many could interpret helpwanted as not going to fix, it means:

helpwanted keyword - This is a valid request, but due to committer resources and other priorities, outside help will be needed to make this happen.

There are many things that we would like to do within WTP, and there are many valid requests that come in, but we do have to focus on what is most important for our community and our adopters.

Now, having said that, there have been a few times where bugs have been marked helpwanted and then the community has stepped up and produced patches which have been accepted into WTP.  As such, I would say that this is not a statement of "not going to fix"- that's what a resolution of WONTFIX is for.  However, I will also admit that this is moreso the exception instead of the rule.
Comment 7 Jesper Moller CLA 2009-07-14 09:26:52 EDT
I'm afraid I do not have the time to properly investigate and fix this at the moment (or, ehm, in the two years which passed since I looked at this last)