Bug 230136 - [xslt][editor] Content Assistance for exclude-result-prefix
Summary: [xslt][editor] Content Assistance for exclude-result-prefix
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsl (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1   Edit
Assignee: David Carver CLA
QA Contact: Doug CLA
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2008-05-04 16:50 EDT by David Carver CLA
Modified: 2009-04-30 14:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2008-05-04 16:50:01 EDT
We should provide content assistance for the exclude-result-prefix attribute.  This would list all the namespace prefixes that have been defined in the stylesheet and allow for a drop down to select from the list.   If the result prefix is already listed it doesn't show up in the exclusion list.
Comment 1 David Carver CLA 2008-06-05 21:41:03 EDT
Mass Migration to wtp.inc.xsl
Comment 2 David Carver CLA 2008-09-04 00:01:17 EDT
targeting for 1.0M2
Comment 3 David Carver CLA 2008-09-06 00:05:10 EDT
Implemented some basic support for exclude-result-prefixes content assistance.  This will allows the default value of #all, and then lista all the prefixes that have been defined in the XML document.   If an item has already been added to the list, it will be filtered from the proposal list.   Each proposal has additional information, which is the uri that has been associated with it.   The XSLT namespace is automatically excluded from the list.

The only time the exclusion of the XSLT namespace from the list will be a problem is when using XSLT to output new XSLT stylesheets.   Schematron might run into this issue as it creates XSLT stylesheets.  May have to make this a preference option, or turn it on if the schematron namespace is detected.

I've checked in the code, but will add the rest of the unit tests before closing this bug.
Comment 4 David Carver CLA 2008-09-06 15:00:49 EDT
Added several unit tests to verify that content assistance proposals are being populated as expected.   Also created a build.xml file to recreate the zip file for the projects, this should make adding an maintaing stylesheets for testing easier.

Marked as noteworthy.   Will open a separate bug for updating the documentation.

Comment 5 David Carver CLA 2009-04-30 14:26:02 EDT
mass update to 3.1 target due to movement from wtp incubator to wtp source editing lost the original milestones.