|
111 | 111 | </p> |
112 | 112 | <h5>Triggering the auto-complete list</h5> |
113 | 113 | <p>For XSLT intellisense, the <span class="shortcut"><</span> character triggers suggestions. XSLT instruction suggestions |
114 | | - fit the context of the curstor location. |
| 114 | + fit the context of the cursor location. |
115 | 115 | On accepting a suggestion a <a href="https://code.visualstudio.com/docs/editor/userdefinedsnippets">Code Snippet</a> is inserted |
116 | 116 | which will include common attributes for the selected instruction. |
117 | 117 | </p> |
|
173 | 173 | <aside>Note: The XSLT Linter uses a Symbol Provider. To ensure checks are performed you should keep the |
174 | 174 | <a href="https://code.visualstudio.com/Docs/editor/editingevolved#_breadcrumbs">Breadcrumbs</a> view enabled.</aside> |
175 | 175 | <p> |
176 | | - The XSLT/XPath linter performs checks on your code as you type, peforming symbol reference tests across all included modules. |
| 176 | + The XSLT/XPath linter performs checks on your code as you type, performing symbol reference tests across all included modules. |
177 | 177 | Any problems are shown in the Problems Panel and also highlighted inline with a squiggly |
178 | 178 | underline for the specific token at issue. |
179 | 179 | Here is a summary of the key checks: |
|
182 | 182 | <li>XML Syntax</li> |
183 | 183 | <li>XSLT/XPath Variable name references</li> |
184 | 184 | <li>XSLT/XPath Parameter name references</li> |
185 | | - <li><strong>All</strong> other symbol name refererences (<code>xsl:accumulator</code> <code>xsl:key</code> etc.)</li> |
| 185 | + <li><strong>All</strong> other symbol name references (<code>xsl:accumulator</code> <code>xsl:key</code> etc.)</li> |
186 | 186 | <li>Function name and arity (number of params)</li> |
187 | 187 | <li><code>xsl:with-param</code> names</li> |
188 | 188 | <li>File locations in <code>xsl:import</code> <code>xsl:include</code> <code>xsl:use-package</code></li> |
|
200 | 200 | can be reported. In such cases, the spurious problems are annoying and may obscure reported problems that are actually relevant. |
201 | 201 | </p> |
202 | 202 | <p>The <strong>Inferred Imports</strong> feature prevents spurious problems being highlighted in the editor. |
203 | | - With this featue, a search is made to find if the active XSLT stylesheet has been declared as an import by another stylesheet opened recently |
| 203 | + With this feature, a search is made to find if the active XSLT stylesheet has been declared as an import by another stylesheet opened recently |
204 | 204 | in Visual Studio Code. If such a 'parent' stylesheet is found (the most recently opened example is used) it is imported along with any other imports. Functions and, |
205 | | - variables etc. used in the active stylehseet can therefore be resolved. |
| 205 | + variables etc. used in the active stylesheet can therefore be resolved. |
206 | 206 | </p> |
207 | 207 | <h5>Unused Variables</h5> |
208 | 208 | <p>The Code Checker detects unused variables and parameters declared in either XSLT or XPath expressions. These are highlighted by being 'grayed out' in |
209 | 209 | the editor. Global variables are shown as unused if they are not referenced in the current file, the 'unused' state is not affected by |
210 | | - imported stylesheets thay may reference the same variable. |
| 210 | + imported stylesheets they may reference the same variable. |
211 | 211 | </p> |
212 | 212 | <h5>Compile-time and Run-time problems</h5> |
213 | 213 | <p>The Code Checking feature is designed to find most basic code problems due to typos or changes to referenced symbols. |
214 | | - When XSLT is run, an attempt is made to parse error messages from the Saxon XSLT procesor |
| 214 | + When XSLT is run, an attempt is made to parse error messages from the Saxon XSLT processor |
215 | 215 | (shown in the Task tab of the Terminal View) so that the problem token is highlighted, |
216 | 216 | and the error message is shown in the Problems View. |
217 | 217 | </p> |
|
0 commit comments