Bug 243578 - [xslt][editor] Content Assistance for mode attribute
Summary: [xslt][editor] Content Assistance for mode attribute
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsl (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 3.1   Edit
Assignee: David Carver CLA
QA Contact: Doug CLA
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2008-08-08 09:11 EDT by David Carver CLA
Modified: 2009-04-30 14:33 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-08-08 09:11:21 EDT
When a mode attribute has been used or defined either within a apply-templates or a xsl:templates it would be nice to have a suggested list of the already existing mode attribute values.
Comment 1 David Carver CLA 2008-09-06 23:33:34 EDT
Use the Stylesheet model to obtain the modes that are defined.  Only add unique modes (no duplicates) to the possible selection list.  A couple of rules depending on where the mode attribute occurs:

xsl:template - only add modes that have either been defined on other templates or on apply-templates.

xsl:apply-templates - this is the opposite of the xsl:template
Comment 2 David Carver CLA 2008-09-08 17:36:17 EDT
Added some basic ability to get a list of mode proposals for templates.   This requires using the StylesheetModel and looking at all the templates to determine if the mode should be available.   Duplicate modes are filtered so mode names need to be unique.  It will search included and imported stylesheets.
Comment 3 David Carver CLA 2008-09-10 15:47:39 EDT
Added basic support for the mode attribute on apply-templates and apply-imports.   Resolving this as fixed, and will open new bugs for further enhancements.
Comment 4 David Carver CLA 2009-04-30 14:26:22 EDT
mass update to 3.1 target due to movement from wtp incubator to wtp source editing lost the original milestones.