7.0.1 HR fix: Bug 197467 - 20s-60s - xml.retriever.catalog.impl.CatalogModelImpl.getModelSource()
Marek Fukala <[email protected]> Thu, 23 Jun 2011 15:04:35 +0200
| Newsgroups | gmane.comp.java.netbeans.reviewers |
|---|---|
| Message-ID | <[email protected]> |
*http://netbeans.org/bugzilla/show_bug.cgi?id=197467* http://hg.netbeans.org/web-main/rev/3a94f1d7edd0 Description: Invoking the code completion in XSL files w/o the schamaLocation attribute blocks the completion for long time and finally doesn't work at all. Evaluation: If the xsl document only declares the http://www.w3.org/1999/XSL/Transform namespace, the normal xsl code completion model workflow is broken since no schema is specified. Some kind of "last resort" solution is used - download the resource specified by the identifier (and not to cache it) and try to pass it to the schema model. Since the link points to some html document describing the namespace, the schema model is not properly built. Fix: In the xsl documents described above the XSL namespace declaration is checked and if the version attribute in the declaring tag has 2.0 value the proper xslt schema is loaded and cached. If the xslt version is 1.0 some kind of pseudo DTD grammar is used instead (xslt1.0 has no proper DTD nor schema). Thanks, Marek