Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 104924

Summary: XHTML as XML
Product: [WebTools] WTP Source Editing Reporter: Patrick Schriner <pschriner>
Component: wst.htmlAssignee: David Williams <david_williams>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: for.work.things, thatnitind
Version: 0.7Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Patrick Schriner CLA 2005-07-23 08:03:01 EDT
Using WTP 0.7RC2, I found several things lacking (probably trivial):

You cannot create a new xml file with an extension like html (or xsl). Just in 
this one case I don´t think that is expected behavior, as xml files can have 
various file extensions.

XHTML files are not available to be edited with the XML editor.

Likewise, XML validation is not available if you associate with that file type 
as well.
Comment 1 David Williams CLA 2005-07-23 15:11:40 EDT
I'll have to sort-through all these cases ... but, you know, the way its
supposed to work in 3.1 and WTP is that you associate the file extension to the
XML Content Type (on the Eclipse content type preferences page). And, our XML
Editor is declared to be for the XML Content Type. 

This definitly works for the XML editor and completely "new" extensions (e.g.
myFile.myType), but admit I have not tried with .html, since it is assigned to
another type there might be something "getting in the way". 
(but, I thought, if you used XHTML in an HTML file, you should still get all the
XML functionality ... is there something missing? Did you want tabletree page,
for example?

Plus, you are correct about the validtor ... that's another bug, bug 86385. 

Comment 2 Patrick Schriner CLA 2005-07-23 19:07:34 EDT
The HTML editor is missing the "design" tab & editor view (at least for me?) (I 
guess that´s what you call tabletree page ;-)).
Comment 3 Nitin Dahyabhai CLA 2007-09-13 04:12:56 EDT
Interesting idea.  Does this boil down to editor filename/content-type associations at this point?
Comment 4 Patrick Schriner CLA 2008-09-29 08:59:55 EDT
I tried this again with a Ganymede JEE release;

It is possible to associate the XML editor to HTML & HTM file type extensions (and it is fairly trivial).
If you use the XML editor, you have all the features I requested - source, tree and validation.

Therefor I would recommend closing this bug as fixed?
Comment 5 David Williams CLA 2008-09-29 10:43:17 EDT
> Therefor I would recommend closing this bug as fixed?

Sounds good to me.