This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 94863 - Missing XSL Transformation for .xsl file in XSL project
Summary: Missing XSL Transformation for .xsl file in XSL project
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexey Yarmolenko
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2007-02-07 15:33 UTC by kozlov
Modified: 2007-08-15 16:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2007-02-07 15:33:44 UTC
Reproduce in build070207.

Steps to reproduce:
- create "XSLModule" project;
- create Xsl Service;
- invoke context menu for .xsl file. 

Missing 'XSL Transformation' in XSL Module in context menu.
Comment 1 Alexey Yarmolenko 2007-02-14 16:43:23 UTC
No easy way to fix this one. Fix rquires either copying of big piece os code
from NB xsl editor module or adding implementation dependency for this module.
Comment 2 Alexei Mokeev 2007-02-16 11:27:18 UTC
There were no objections in 48 hours since the waiver was requested.
EP551_WAIVER_APPROVED
Comment 3 Alexei Mokeev 2007-03-05 17:23:43 UTC
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.
Comment 4 _ rkubacki 2007-08-06 15:27:28 UTC
Perhaps this is because XSLTDataObject is not adding TransformerSupport to its cookie set (why are these lines commented?).

I do not see what API is missing so I do not agree with waiver without better justification.
Comment 5 Alexey Yarmolenko 2007-08-09 11:30:40 UTC
TransformerSupport designed in a way, allowing to use it only with org.netbeans.modules.xml.core.XMLDataObject:

public class TransformUtil {
[...]
public static boolean isXSLTransformation (DataObject dataObject) {
        return ( dataObject instanceof XSLDataObject );
//         return dataObject.getPrimaryFile().getMIMEType().equals (XSLDataObject.MIME_TYPE);
    }
[...]
}
I played with adding this cookie before 5.5.1 release, but found that once this "XSL Transformation" is invoked for xsl
file in our project, file name is placed into "XML Source" field in "XSL Transformation" dialog and this field is
disabled, so user cant put a proper xml sile name in it. So, i switched off support for this feature. 



Comment 6 Alexey Yarmolenko 2007-08-09 11:46:35 UTC
Switched to another way to test DataObject to have a XSL content in TransformUtil.
Added support for TransformationCookie in XSLDataObject
Comment 8 kozlov 2007-08-15 16:18:07 UTC
Verified in build070815.