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

Bug 273765

Summary: Cannot use XSL tools to transform files which do not end in .xml
Product: [WebTools] WTP Source Editing Reporter: Nick Boldt <nboldt>
Component: wst.xslAssignee: David Carver <d_a_carver>
Status: RESOLVED WORKSFORME QA Contact: David Carver <d_a_carver>
Severity: normal    
Priority: P3 CC: d_a_carver, thatnitind
Version: unspecified   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 265847    

Description Nick Boldt CLA 2009-04-27 00:01:22 EDT
See bug 265847 comment 4 for the usecase here; simply put, if I want to transform an xml file called gef.psf to build.xml, I have to rename the team project set file (.psf) to .xml before XSL tools recognizes it as valid transformable input.

Same story for all EMF-based models, which might end in .build or .model or .library, but are all valid XML or XMI files which could be transformed if the tools allowed it.

I'm using Eclipse 3.5M6 with XSL Tools 1.0.0.v200809171039.
Comment 1 David Carver CLA 2009-04-27 00:48:22 EDT
Try with a version after 20090309, this should be fixed there, as it was addressed with bug 264788.   We have a unit test that checks to make sure that one of the extensions that is returned is XMI.   Prior version were not querying the extensions that were made available under the eclipse.core.runtime.xml Content-Type, or those extending them.

http://build.eclipse.org/webtools/committers/xsl-R1.0-I/20090427041123/I-I20090427041123-20090427041123/
Comment 2 David Carver CLA 2009-11-15 13:27:40 EST
I just tried this, and here is how I was able to make it work:

1. Go into your Content Types and go to Text->XML,  Add *.psf to the XML content type.
2.  Hit OK to have it written out.
3. Restart Eclipse (yes, you need to restart).

When eclipse restarts, you should be able to open the PSF files using the XML editor.   You should also be able to click on an XSL file and also select the PSF file to run a transformation.

PSF files do not contribute themselves to the XML Content type out of the box, so you have to do it manually.  If they show up there they will work as expected.