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 161436 - Broken XSL completion
Summary: Broken XSL completion
Status: RESOLVED DUPLICATE of bug 203793
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 6.x
Hardware: Other All
: P2 blocker with 2 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-30 09:10 UTC by Jaroslav Tulach
Modified: 2011-10-17 09:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
No completion suggestions on file generated by default XSL template (94.65 KB, image/png)
2009-03-30 09:11 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-03-30 09:10:30 UTC
After working with XSL files for a while the competion gets broken and shows nothing useful. As soon as that happens, 
I can create new XSL file from XML/XSL template position anywhere, press ctrl+space and the only reply I get is "No 
suggestions", see the attached screenshot.

If you have problems to reproduce, don't hesitate to ask me for help. I seem to be able to reproduce that everything I 
use XSL.
Comment 1 Jaroslav Tulach 2009-03-30 09:11:31 UTC
Created attachment 79029 [details]
No completion suggestions on file generated by default XSL template
Comment 2 Jaroslav Tulach 2009-03-30 09:17:41 UTC
Tested on build from 2009/03/24. I also tried to restart and use new userdir. That does not work either. The XSL code 
completion just repeats "No suggestions".
Comment 3 Sergey Lunegov 2009-03-30 09:37:39 UTC
Alex, this is in 67. Please look.
Comment 4 Svata Dedic 2011-10-17 09:21:48 UTC
This is caused by incomplete support for substitution groups in the schema model: if a element X is substitutable for a head, that head's children will be used for X children. This direction is implemented.

But it seems that if a child X is a substitution head, the contents of the X substitution group are not added as alternatives: either the schema model has to include a choice of all substitutions (including the head), or the client must query and add all alternatives should the child be a head of a substitution group. Note that the 'head of subst group' flag is not present at the schema model.
Comment 5 Svata Dedic 2011-10-17 09:41:42 UTC
203793 has same cause and more precise description of the issue

*** This bug has been marked as a duplicate of bug 203793 ***