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 198662 - XSLT code completion issues in 6.8, 6.9, 7.0
Summary: XSLT code completion issues in 6.8, 6.9, 7.0
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.0
Hardware: PC Other
: P2 normal with 26 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 01:38 UTC by smokindoug
Modified: 2012-02-02 11:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Provider (1.04 KB, application/octet-stream)
2011-05-17 01:40 UTC, smokindoug
Details
layers (523 bytes, application/octet-stream)
2011-05-17 01:41 UTC, smokindoug
Details
completion context (1.66 KB, application/octet-stream)
2011-05-17 01:42 UTC, smokindoug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smokindoug 2011-05-17 01:38:17 UTC
I have a potential fix for the XSLT code completion problems if 6.8, 6.9 and 7.0.

I have checked my fix with 7.0, but it should work with 6.8 or 6.9.

The primary issue (once code completion is turned on in "XSL Support") is that the "Schema Based Completion Provider" pauses while accessing "http://www.w3.org/1999/XSL/Transform" (whatever has happened at the w3c web site it takes a consistent 20+ seconds to return from this URL). Since this URL does not contain schema information my fix involves a guard preventing the access attempt (actually I filter a number of URL typically found in my XSLT).

Two other fix details...1) enable creation of a "XSLGrammarQuery" from the "XSLGrammarQueryProvider" and 2) re-add "XSLGrammarQueryProvider" under :GrammarQueryManagers"

Diffs are attached.

Another point is I do not know what is different about the XSL completion in the XSL.CORE module which is removed from 7.0. Is it more capable?
Comment 1 smokindoug 2011-05-17 01:40:32 UTC
Created attachment 108342 [details]
Provider
Comment 2 smokindoug 2011-05-17 01:41:30 UTC
Created attachment 108343 [details]
layers
Comment 3 smokindoug 2011-05-17 01:42:37 UTC
Created attachment 108344 [details]
completion context
Comment 4 Svata Dedic 2011-11-07 16:04:00 UTC
Well-known schemas, such as XSL 2.0 are now included in the distribution. Will look at XSLGrammarQuery during the next release cycle.
Comment 5 Marian Mirilovic 2012-01-10 17:11:23 UTC
23 votes .. at least P2
Comment 6 Svata Dedic 2012-02-02 11:57:50 UTC
The reported issue - pauses when downloading XSLT schema - are now solved; NetBeans bundle those schemas, so they are available immediately.

I would prefer not re-adding XSLGrammarQueryProvider, it brings only very basic completion for XPath expressions in certain attributes and was deactivated a long time ago. The main part of completion (elements, attributes, cardinality) is provided by schema aware completion support now.

Please re-evaluate the current state (in NetBeans 7.1 release) whether the completion behaviour is acceptable. Thanks.