Debian Codegraph @

net/sf/saxon/lib/Feature.java

raw symbols SCIP
1
2 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3 // Copyright (c) 2018 Saxonica Limited.
4 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
5 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
7 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8
9 package net.sf.saxon.lib;
10
11 import java.util.HashMap;
12 import java.util.Map;
13
14 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
15
16
17 /**
18 * Feature defines a set of constants, representing the details of Saxon configuration
19 * options which can be supplied to the Saxon method Configuration.setProperty(),
20 * and to other interfaces
21 */
22
23 public class Feature<T> {
24 public String name;
25 public final int code;
26 public int requiredEdition;
27 public Class<? extends T> type;
28 public T defaultValue;
29
30 private static final int HE = 0, PE = 1, EE = 2;
31
32 private static final Map<String, Feature> index = new HashMap<String, Feature>();
33
34 private Feature(String name, int code, int requiredEdition, Class<? extends T> type, T defaultValue) {
35 this.name = name;
36 this.code = code;
37 this.requiredEdition = requiredEdition;
38 this.type = type;
39 this.defaultValue = defaultValue;
40 index.put(name, this);
41 }
42
43 public static Feature<?> byName(String name) {
44 return index.get(name);
45 }
46
47 /**
48 * <p>ALLOW_EXTERNAL_FUNCTIONS determines whether calls to reflexive external functions are
49 * allowed.</p>
50 * <p>More specifically, if set to <b>false</b> it disallows all of the
51 * following:</p>
52 * <ul>
53 * <li>Calls to reflexive Java extension functions</li>
54 * <li>Use of the XSLT <code>system-property()</code> function to access Java system
55 * properties</li>
56 * <li>Use of a URI in the <code>href</code> attribute of an <code>xsl:result-document</code> instruction</li>
57 * <li>Calls to XSLT extension instructions</li>
58 * </ul>
59 * <p>The default value is <b>true</b>. The setting <b>false</b> is recommended in an
60 * environment where untrusted stylesheets may be executed.</p>
61 * <p>This option does not disable use of the <code>doc()</code> function or similar
62 * functions to access the filestore of the machine where the transformation or query
63 * is running. That should be done using a user-supplied <code>URIResolver</code>.</p>
64 * <p>Note that integrated extension functions are trusted; calls to such functions are
65 * allowed even if this configuration option is false. In cases where an integrated
66 * extension function is used to load and execute untrusted code, it should check this
67 * configuration option before doing so.</p>
68 * <p>If the value of the property is false, then it will also be set to false on any new
69 * Configuration created using the <code>fn:transform()</code> function.</p>
70 *
71 **/
72
73 public final static Feature<Boolean> ALLOW_EXTERNAL_FUNCTIONS = new Feature<Boolean>(
74 "http://saxon.sf.net/feature/allow-external-functions", 1, HE, Boolean.class, false);
75
76 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
77
78
79 /**
80 * <p>ALLOW_MULTITHREADING determines whether multi-threading is allowed.</p>
81 * <p>If true (the default), the presence of the attribute <code>saxon:threads="N"</code>
82 * on an <code>xsl:for-each</code> instruction, when running under Saxon-EE, causes
83 * multi-threaded execution. If set to false, the value of the
84 * <code>saxon:threads</code> argument is ignored.</p>
85 * <p>Setting the value to false also disables asynchronous processing of
86 * <code>xsl:result-document</code> instructions.</p>
87 * <p>The default value is true if Saxon-EE is in use, false otherwise.</p>
88 *
89 **/
90
91 public final static Feature<Boolean> ALLOW_MULTITHREADING = new Feature<Boolean>(
92 "http://saxon.sf.net/feature/allow-multithreading", 2, EE, Boolean.class, false);
93
94 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
95
96
97 /**
98 * <p>ALLOW_OLD_JAVA_URI_FORMAT determines whether extension function calls to
99 * dynamically-loaded Java extension functions may use the URI format supported in
100 * older Saxon releases.</p>
101 * <p>If the value is false (the default), the only URI format accepted is (for example)
102 * "java:java.util.Date" - that is, a URI consisting of the string "java:" followed by
103 * the Java qualified class name of the class containing the implementation of the
104 * extension function.</p>
105 * <p>If the value is true, then in addition to this format, the following are accepted:
106 * (a) the Java class name on its own ("java.util.Date"), and (b) any URI in which the
107 * Java class name follows the last "/" character (for example
108 * "http://my.com/extensions/java.util.Date"). This last format was originally provided
109 * for compatibility with xt and xalan, but it causes problems because it leads to
110 * unnecessary attempts to load spurious classes when the user did not intend the URI
111 * to represent a dynamically-loaded Java class.</p>
112 *
113 **/
114
115 public final static Feature<Boolean> ALLOW_OLD_JAVA_URI_FORMAT = new Feature<Boolean>(
116 "http://saxon.sf.net/feature/allow-old-java-uri-format", 3, PE, Boolean.class, false);
117
118 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
119
120
121 /**
122 * <p>This flag must be set to enable use of extensions to XPath (and potentially XQuery and XSLT)
123 * syntax that go beyond what is allowed by the extensibility mechanisms in the spec.
124 * In some cases these extensions are experimental and may not be carried forward to future
125 * Saxon releases.</p>
126 * <p>Syntax extensions in Saxon 9.8 include the use of type aliases (<code>~aliasName</code> where
127 * an item type is expected, and <code>declare type NAME = item-type</code> in the XQuery Prolog);
128 * and simple inline functions (for example <code>fn{. + 1}</code>).</p>
129 *
130 **/
131
132 public final static Feature<Boolean> ALLOW_SYNTAX_EXTENSIONS = new Feature<Boolean>(
133 "http://saxon.sf.net/feature/allowSyntaxExtensions", 4, PE, Boolean.class, false);
134
135 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
136
137
138 /**
139 * <p>ASSERTIONS_CAN_SEE_COMMENTS determines whether comment and processing instructions in
140 * a document being validated are visible to assertions in an XSD 1.1 schema.</p>
141 * <p>If the value is false (the default), comments and processing instructions are
142 * stripped from the view of the document that is made visible to the XPath expression
143 * that implements the assertion. If this creates adjacent text nodes, they are
144 * collapsed into a single text node.</p>
145 * <p>If the value is true, then comments and processing instructions are visible to the
146 * XPath assertion.</p>
147 *
148 **/
149
150 public final static Feature<Boolean> ASSERTIONS_CAN_SEE_COMMENTS = new Feature<Boolean>(
151 "http://saxon.sf.net/feature/assertionsCanSeeComments", 5, EE, Boolean.class, false);
152
153 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
154
155
156 /**
157 * <p>The supplied <code>CollationURIResolver</code> is used to process any collation URIs
158 * found in the query or stylesheet, returning an object of class
159 * {@link net.sf.saxon.lib.StringCollator} that implements the requested
160 * collation.</p>
161 *
162 **/
163
164 public final static Feature<net.sf.saxon.lib.CollationURIResolver> COLLATION_URI_RESOLVER = new Feature<net.sf.saxon.lib.CollationURIResolver>(
165 "http://saxon.sf.net/feature/collation-uri-resolver", 6, HE, net.sf.saxon.lib.CollationURIResolver.class, null);
166
167 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
168
169
170 /**
171 * <p>The supplied class is instantiated and the resulting instance is used as the value of
172 * the {@link net.sf.saxon.lib.Feature#COLLATION_URI_RESOLVER} property.</p>
173 *
174 **/
175
176 public final static Feature<String> COLLATION_URI_RESOLVER_CLASS = new Feature<String>(
177 "http://saxon.sf.net/feature/collation-uri-resolver-class", 7, HE, String.class, null);
178
179 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
180
181
182 /**
183 * <p>The supplied <code>CollectionFinder</code> is used to retrieve a {@link net.sf.saxon.lib.ResourceCollection} object given by any URI defined in
184 * calls to the <code>collection()</code> or the <code>uri-collection()</code> function.</p>
185 * <p>If the argument is not specified then a default <code>ResourceCollection</code> should be handled.
186 * <code>CollectionFinder</code> returns a {@link net.sf.saxon.lib.ResourceCollection} which is used to map the URI of collection into a
187 * sequence of {@link net.sf.saxon.lib.Resource} objects
188 * (which are then resolved in the same way as URIs passed to the <code>doc()</code>
189 * function), or it may return an item (typically a node but can handle JSON documents).</p>
190 *
191 **/
192
193 public final static Feature<net.sf.saxon.lib.CollectionFinder> COLLECTION_FINDER = new Feature<net.sf.saxon.lib.CollectionFinder>(
194 "http://saxon.sf.net/feature/collection-finder", 8, HE, net.sf.saxon.lib.CollectionFinder.class, null);
195
196 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
197
198
199 /**
200 * <p>The supplied class is instantiated and the resulting instance is used as the value of
201 * the {@link net.sf.saxon.lib.Feature#COLLECTION_FINDER} property.</p>
202 *
203 **/
204
205 public final static Feature<String> COLLECTION_FINDER_CLASS = new Feature<String>(
206 "http://saxon.sf.net/feature/collection-finder-class", 9, HE, String.class, null);
207
208 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
209
210
211 /**
212 * <p>The supplied <code>CollectionURIResolver</code> is used to process any URIs used in
213 * calls to the <code>collection()</code> function. The
214 * <code>CollectionURIResolver</code> may either return a sequence of URIs (which
215 * are then resolved in the same way as URIs passed to the <code>doc()</code>
216 * function), or it may return a sequence of (typically document) nodes.</p>
217 *
218 **/
219
220 public final static Feature<net.sf.saxon.lib.CollectionURIResolver> COLLECTION_URI_RESOLVER = new Feature<net.sf.saxon.lib.CollectionURIResolver>(
221 "http://saxon.sf.net/feature/collection-uri-resolver", 10, HE, net.sf.saxon.lib.CollectionURIResolver.class, null);
222
223 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
224
225
226 /**
227 * <p>The supplied class is instantiated and the resulting instance is used as the value of
228 * the {@link net.sf.saxon.lib.Feature#COLLECTION_URI_RESOLVER} property.</p>
229 *
230 **/
231
232 public final static Feature<String> COLLECTION_URI_RESOLVER_CLASS = new Feature<String>(
233 "http://saxon.sf.net/feature/collection-uri-resolver-class", 11, HE, String.class, null);
234
235 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
236
237
238 /**
239 * <p>If run-time tracing of stylesheet or query execution is required, then the code must
240 * be compiled with tracing enabled.</p>
241 * <p>Default is false. This option causes code to be
242 * compiled that makes calls to a {@link net.sf.saxon.lib.TraceListener}, but this
243 * has no effect unless a <code>TraceListener</code> is registered at execution
244 * time.</p>
245 *
246 **/
247
248 public final static Feature<Boolean> COMPILE_WITH_TRACING = new Feature<Boolean>(
249 "http://saxon.sf.net/feature/compile-with-tracing", 12, HE, Boolean.class, false);
250
251 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
252
253
254 /**
255 * <p>This attribute cannot be set on the {@link net.sf.saxon.Configuration} itself,
256 * but it can be set on various JAXP factory objects such as a
257 * <code>TransformerFactory</code> or <code>DocumentBuilderFactory</code>, to
258 * ensure that several such factories use the same <code>Configuration</code>.</p>
259 * <p>Note that other configuration options are held in the <code>Configuration</code> object,
260 * so setting this attribute will cancel all others that have been set. Also, if two
261 * factories share the same <code>Configuration</code>, then setting an attribute on
262 * one affects all the others.</p>
263 *
264 **/
265
266 public final static Feature<net.sf.saxon.Configuration> CONFIGURATION = new Feature<net.sf.saxon.Configuration>(
267 "http://saxon.sf.net/feature/configuration", 13, HE, net.sf.saxon.Configuration.class, null);
268
269 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
270
271
272 /**
273 * <p>Defines a configuration file to be applied to the configuration.</p>
274 * <p>This attribute cannot be set on the {@link net.sf.saxon.Configuration} itself, but it can be
275 * set on various JAXP factory objects such as a <code>TransformerFactory</code> or
276 * <code>DocumentBuilderFactory</code>. It is particularly useful when running
277 * transformations via the Ant xslt task, where it can be set as follows to define all
278 * configuration settings: </p>
279 * <p><code>&lt;factory name="net.sf.saxon.TransformerFactoryImpl"&gt; &lt;attribute
280 * name="http://saxon.sf.net/feature/configuration-file"
281 * value="c:/saxon/config.xml"/&gt; &lt;/factory&gt;</code>
282 * </p>
283 *
284 **/
285
286 public final static Feature<String> CONFIGURATION_FILE = new Feature<String>(
287 "http://saxon.sf.net/feature/configuration-file", 14, PE, String.class, null);
288
289 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
290
291
292 /**
293 * <p>This option is set to indicate that bytecode generation should be run in debugging
294 * mode; it injects diagnostic tracing calls into the generated bytecode. This should
295 * be used only if requested by Saxonica support to diagnose a problem related to
296 * bytecode generation.</p>
297 *
298 **/
299
300 public final static Feature<Boolean> DEBUG_BYTE_CODE = new Feature<Boolean>(
301 "http://saxon.sf.net/feature/debugByteCode", 15, EE, Boolean.class, false);
302
303 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
304
305
306 /**
307 * <p>This option is relevant only if <code>DISPLAY_BYTE_CODE</code> is set to true. It
308 * defines a directory to which files containing bytecode in human-readable form will
309 * be written. There will be one such file for each generated class, with a filename
310 * designed to give some kind of clue as to its relationship to the source code.</p>
311 * <p>The default value is the directory <code>saxonByteCode</code> within the current
312 * working directory.</p>
313 * <p>The named directory is created if it does not already exist.</p>
314 * <p>Because the generation of class names involves random numbers, files will tend to
315 * accumulate in the supplied directory, even when the same source code is compiled
316 * repeatedly.</p>
317 *
318 **/
319
320 public final static Feature<String> DEBUG_BYTE_CODE_DIR = new Feature<String>(
321 "http://saxon.sf.net/feature/debugByteCodeDir", 16, EE, String.class, null);
322
323 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
324
325
326 /**
327 * <p>This option determines the collation that is used for comparing strings when no
328 * explicit collation is requested. It is not necessary for this collation to exist (or
329 * to have been registered) when setting this option; it only needs to exist by the
330 * time it is used.</p>
331 * <p>In XSLT it is possible to override this setting using the
332 * <code>[xsl:]default-collation</code> attribute on any stylesheet element. In
333 * XQuery, it can be overridden using the <code>declare default collation</code>
334 * declaration in the query prolog, or via a setter method in class
335 * {@link net.sf.saxon.query.StaticQueryContext}.</p>
336 * <p>If no value is specified, the Unicode codepoint collation is used.</p>
337 *
338 **/
339
340 public final static Feature<String> DEFAULT_COLLATION = new Feature<String>(
341 "http://saxon.sf.net/feature/defaultCollation", 17, HE, String.class, null);
342
343 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
344
345
346 /**
347 * <p>This determines the collection that is used when the <code>fn:collection()</code>
348 * function is called with no arguments; the effect is the same as if it were called
349 * passing the URI that is the value of this configuration property.</p>
350 *
351 **/
352
353 public final static Feature<String> DEFAULT_COLLECTION = new Feature<String>(
354 "http://saxon.sf.net/feature/defaultCollection", 18, HE, String.class, null);
355
356 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
357
358
359 /**
360 * <p>This determines the country that is used by <code>format-date()</code> and similar
361 * functions if no country code is supplied explicitly. If no value is given for this
362 * property, the default is taken from the Java Locale, which in turn typically depends
363 * on settings for the current user in the operating system.</p>
364 *
365 **/
366
367 public final static Feature<String> DEFAULT_COUNTRY = new Feature<String>(
368 "http://saxon.sf.net/feature/defaultCountry", 19, HE, String.class, null);
369
370 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
371
372
373 /**
374 * <p>This option determines the language that is used by <code>format-date()</code>,
375 * <code>xsl:number</code> and similar constructs if no language code is supplied
376 * explicitly. If no value is given for this property, the default is taken from the
377 * Java Locale, which in turn typically depends on settings for the current user in the
378 * operating system.</p>
379 *
380 **/
381
382 public final static Feature<String> DEFAULT_LANGUAGE = new Feature<String>(
383 "http://saxon.sf.net/feature/defaultLanguage", 20, HE, String.class, null);
384
385 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
386
387
388 /**
389 * <p>Determines which regular expression engine should be used for evaluating regular expressions occuring in constructs
390 * such as <code>fn:matches()</code>, <code>fn:replace</code>, and <code>xsl:analyze-string</code>, and also
391 * in the pattern facet of a schema.</p>
392 * <p>On the Java platform the permitted values are "S" (default), and "J". The value "J" selects the regex engine
393 * provided in the JDK in preference to the Saxon regular expression engine. This means that regular expressions must
394 * follow the Java syntax and semantics rather than the XPath syntax and semantics.</p>
395 * <p>On the .NET platform the permitted values are "S" (default), "J", and "N". The value "J" selects the regex engine
396 * provided in the IKVMC run-time, which is derived from OpenJDK. The value "N" selects the regex engine provided
397 * in the Microsoft .NET platform. In each case, the regular expression must follow the syntax and semantics of the selected
398 * regex engine.</p>
399 * <p>The choice of regular expression may be overridden in a particular invocation by appending the value ";s",
400 * ";j", or ";n" to the flags argument of the relevant call. (This does not apply to XSD patterns, where no flags argument is available)</p>
401 * <p>Use of this feature is not conformant with W3C specifications. Use of the setting "N", however, can be useful
402 * when schemas have been written with the Microsoft schema processor in mind, since this uses the Microsoft regular
403 * expression dialect rather than the W3C dialect.</p>
404 *
405 **/
406
407 public final static Feature<String> DEFAULT_REGEX_ENGINE = new Feature<String>(
408 "http://saxon.sf.net/feature/defaultRegexEngine", 21, HE, String.class, null);
409
410 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
411
412
413 /**
414 * <p>This option disables the <code>xsl:evaluate</code> instruction.</p>
415 * <p>If set at stylesheet compile time, the feature is statically disabled. If set at
416 * run-time it is dynamically disabled. (These terms are defined in the XSLT 3.0 spec.)
417 * The feature is always disabled (statically) in Saxon-HE.</p>
418 *
419 **/
420
421 public final static Feature<Boolean> DISABLE_XSL_EVALUATE = new Feature<Boolean>(
422 "http://saxon.sf.net/feature/disableXslEvaluate", 22, EE, Boolean.class, false);
423
424 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
425
426
427 /**
428 * <p>This option is set to indicate that bytecode generation should be run in display
429 * mode. The effect is to output files (one per class) containing a human-readable
430 * print of the generated bytecode. The files are placed in the directory identified by
431 * the <code>DEBUG_BYTE_CODE_DIR</code> option.</p>
432 *
433 **/
434
435 public final static Feature<Boolean> DISPLAY_BYTE_CODE = new Feature<Boolean>(
436 "http://saxon.sf.net/feature/displayByteCode", 23, EE, Boolean.class, false);
437
438 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
439
440
441 /**
442 * <p>If true, the XML parser is requested to perform validation of source documents
443 * against their DTD. Default is false.</p>
444 * <p>This option establishes a default for use whenever source documents (not stylesheets
445 * or schema documents) are parsed. The option can be overridden for individual
446 * documents by setting the {@link net.sf.saxon.lib.ParseOptions} for that
447 * individual document, for example from a <code>URIResolver</code>.</p>
448 *
449 **/
450
451 public final static Feature<Boolean> DTD_VALIDATION = new Feature<Boolean>(
452 "http://saxon.sf.net/feature/validation", 24, HE, Boolean.class, false);
453
454 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
455
456
457 /**
458 * <p>This option determines whether DTD validation failures should be treated as
459 * recoverable. If the option is set, a validation failure is reported as a warning
460 * rather than an error. The default is false.</p>
461 * <p>This option establishes a default for use whenever source documents (not stylesheets
462 * or schema documents) are parsed. The option can be overridden for individual
463 * documents by setting the {@link net.sf.saxon.lib.ParseOptions} for that
464 * individual document, for example from a <code>URIResolver</code>.</p>
465 *
466 **/
467
468 public final static Feature<Boolean> DTD_VALIDATION_RECOVERABLE = new Feature<Boolean>(
469 "http://saxon.sf.net/feature/dtd-validation-recoverable", 25, HE, Boolean.class, false);
470
471 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
472
473
474 /**
475 * <p>Forces Saxon to do eager evaluation of expressions in contexts where normally it would do lazy evaluation,
476 * for example when evaluating variables and function results. This can make for easier debugging.</p>
477 * <p>Note that this only applies to situations where Saxon would normally save a <code>Closure</code>
478 * object as the result of an expression. It does not prevent Saxon from using pipelined evaluation of
479 * intermediate expressions using iterators.</p>
480 *
481 **/
482
483 public final static Feature<Boolean> EAGER_EVALUATION = new Feature<Boolean>(
484 "http://saxon.sf.net/feature/eagerEvaluation", 26, HE, Boolean.class, false);
485
486 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
487
488
489 /**
490 * <p>The supplied class is instantiated and the resulting <code>EntityResolver</code> is
491 * used whenever Saxon itself creates an <code>XMLReader</code> for parsing source
492 * documents. It is not used with a user-supplied <code>XMLReader</code>.</p>
493 * <p>The default value is {@link net.sf.saxon.lib.StandardEntityResolver}. This is an entity
494 * resolver that recognizes the names of many standard W3C DTDs and external entity
495 * files, and resolves them against local copies issued with the Saxon software, to
496 * avoid the need to fetch them from the web.</p>
497 * <p>The property can be set to a zero-length string, in which case no
498 * <code>EntityResolver</code> will be used.</p>
499 *
500 *
501 **/
502
503 public final static Feature<String> ENTITY_RESOLVER_CLASS = new Feature<String>(
504 "http://saxon.sf.net/feature/entityResolverClass", 27, HE, String.class, null);
505
506 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
507
508
509 /**
510 * <p>Setting the <code>ENVIRONMENT_VARIABLE_RESOLVER</code> causes the supplied object to
511 * be registered as the environment variable resolver for the
512 * <code>Configuration</code>. The setting is global: it affects all queries and
513 * transformations using this configuration.</p>
514 * <p>The environment variable resolver is used when the XPath functions
515 * <code>available-environment-variables()</code> or
516 * <code>environment-variable()</code> are called. Saxon essentially delegates the
517 * evaluation of the function to the external resolver.</p>
518 *
519 **/
520
521 public final static Feature<net.sf.saxon.lib.EnvironmentVariableResolver> ENVIRONMENT_VARIABLE_RESOLVER = new Feature<net.sf.saxon.lib.EnvironmentVariableResolver>(
522 "http://saxon.sf.net/feature/environmentVariableResolver", 28, HE, net.sf.saxon.lib.EnvironmentVariableResolver.class, null);
523
524 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
525
526
527 /**
528 * <p>Setting <code>ENVIRONMENT_VARIABLE_RESOLVER_CLASS</code> causes an instance of the
529 * supplied class to be created, and registered as the environment variable resolver
530 * for the <code>Configuration</code>. The setting is global: it affects all queries
531 * and transformations using this configuration.</p>
532 * <p>The environment variable resolver is used when the XPath functions
533 * <code>available-environment-variables()</code> or
534 * <code>environment-variable()</code> are called. Saxon essentially delegates the
535 * evaluation of the function to the external resolver.</p>
536 *
537 **/
538
539 public final static Feature<String> ENVIRONMENT_VARIABLE_RESOLVER_CLASS = new Feature<String>(
540 "http://saxon.sf.net/feature/environmentVariableResolverClass", 29, HE, String.class, null);
541
542 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
543
544
545 /**
546 * <p><code>ERROR_LISTENER_CLASS</code> is the name of the class used to implement the JAXP
547 * <code>ErrorListener</code>. This is used both at compile time and at run-time.</p>
548 * <p>Currently if this option is specified, the class is instantiated, and the same
549 * instance is used for all processes running under this configuration. This may change
550 * in future so that a new instance is created for each compilation or evaluation.</p>
551 * <p>Finer control can be obtained by setting the <code>ErrorListener</code> for a
552 * specific XSLT or XQuery compilation or evaluation.</p>
553 *
554 **/
555
556 public final static Feature<String> ERROR_LISTENER_CLASS = new Feature<String>(
557 "http://saxon.sf.net/feature/errorListenerClass", 30, HE, String.class, null);
558
559 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
560
561
562 /**
563 * <p><code>EXPAND_ATTRIBUTE_DEFAULTS</code> determines whether fixed and default values
564 * defined in a schema or DTD will be expanded (both on input and on output documents,
565 * if validation is requested).</p>
566 * <p>By default (and for conformance with the specification)
567 * validation against a DTD or schema will cause default values defined in the schema
568 * or DTD to be inserted into the document. Setting this feature to false suppresses
569 * this behavior. In the case of DTD-defined defaults this only works if the XML parser
570 * reports whether each attribute was specified in the source or generated by expanding
571 * a default value. Not all XML parsers report this information.</p>
572 *
573 **/
574
575 public final static Feature<Boolean> EXPAND_ATTRIBUTE_DEFAULTS = new Feature<Boolean>(
576 "http://saxon.sf.net/feature/expandAttributeDefaults", 31, HE, Boolean.class, false);
577
578 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
579
580
581 /**
582 * <p><code>EXPATH_FILE_DELETE_TEMPORARY_FILES</code> determines whether temporary files
583 * and directories created in the EXPath File module should be automatically deleted on
584 * closure of the JVM.</p>
585 * <p>The default value is <b>false</b>, to align with the standard. The setting
586 * <b>false</b> is recommended when external 'sweep-up' features aren't
587 * available.</p>
588 *
589 **/
590
591 public final static Feature<Boolean> EXPATH_FILE_DELETE_TEMPORARY_FILES = new Feature<Boolean>(
592 "http://saxon.sf.net/feature/expathFileDeleteTemporaryFiles", 32, PE, Boolean.class, false);
593
594 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
595
596
597 /**
598 * <p>By default, Saxon-EE attempts to generate Java bytecode for evaluation of parts of a
599 * query or stylesheet that are amenable to such treatment. Setting this option to
600 * false disables this.</p>
601 *
602 **/
603
604 public final static Feature<Boolean> GENERATE_BYTE_CODE = new Feature<Boolean>(
605 "http://saxon.sf.net/feature/generateByteCode", 33, EE, Boolean.class, false);
606
607 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
608
609
610 /**
611 * <p>If this option is set to true, then when a <code>SAXSource</code> is supplied as the
612 * input to an XSLT transformation, Saxon will ignore the <code>XMLReader</code>
613 * supplied in the <code>SAXSource</code> (in fact, it will modify the supplied
614 * <code>SAXSource</code> setting the <code>XMLReader</code> to null) and use an
615 * <code>XMLReader</code> created using the value of the
616 * <code>SOURCE_PARSER_CLASS</code> option in preference.</p>
617 * <p>The defining use case for this feature is when calling a Saxon transformation from
618 * Ant. Ant always supplies the source document as a <code>SAXSource</code> using a
619 * parser instantiated using the default JAXP mechanism. A different parser set using
620 * the property <code>http://saxon.sf.net/feature/sourceParserClass</code> will
621 * normally be ignored in this case; setting the <code>ignoreSAXSourceParser</code>
622 * option overrides this. This is especially useful if the input format is not in fact
623 * XML, but some other format converted to a SAX event stream by means of a custom
624 * parser.</p>
625 *
626 **/
627
628 public final static Feature<Boolean> IGNORE_SAX_SOURCE_PARSER = new Feature<Boolean>(
629 "http://saxon.sf.net/feature/ignoreSAXSourceParser", 34, HE, Boolean.class, false);
630
631 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
632
633
634 /**
635 * <p><code>IMPLICIT_SCHEMA_IMPORTS</code> allows reference to schema components without an <code>xs:import</code> for the relevant namespace being
636 * present in the containing schema document. </p>
637 * <p>This only works if the referenced components are already present among the schema components known to the configuration, perhaps
638 * because they were part of a different schema, or because there are cyclic references within a schema.</p>
639 * <p>This option is not conformant with the XSD specification, which requires explicit <code>xs:import</code> declarations
640 * for all cross-namespace component references. However, some "industry-standard" schemas are known to violate this rule,
641 * and setting this option allows such schemas to be loaded by Saxon.</p>
642 *
643 **/
644
645 public final static Feature<Boolean> IMPLICIT_SCHEMA_IMPORTS = new Feature<Boolean>(
646 "http://saxon.sf.net/feature/implicitSchemaImports", 35, EE, Boolean.class, false);
647
648 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
649
650
651 /**
652 * <p><code>LAZY_CONSTRUCTION_MODE</code> determines whether temporary trees are
653 * constructed lazily. The default setting is false; there are a few situations (but
654 * not many) where setting this to true can give a performance benefit (especially a
655 * memory saving).</p>
656 * <p>The option is most likely to be effective when executing XQuery in "pull" mode, that
657 * is, when the client calls the query processor to deliver the result as a stream of
658 * nodes, rather than running the query and piping the results into a serializer.</p>
659 *
660 **/
661
662 public final static Feature<Boolean> LAZY_CONSTRUCTION_MODE = new Feature<Boolean>(
663 "http://saxon.sf.net/feature/lazyConstructionMode", 36, HE, Boolean.class, false);
664
665 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
666
667
668 /**
669 * <p><code>LICENSE_FILE_LOCATION</code> holds the filename in which the Saxon license file
670 * is held.</p>
671 * <p>This is the full file name, for example <code>c:/saxon/license/license.lic</code>.
672 * Setting this property causes Saxon to
673 * immediately read the specified file and register the license data, assuming it can
674 * be found at this location. The property is not recognized for reading, and it is not
675 * recognized for writing except in Saxon-PE and Saxon-EE.</p>
676 *
677 **/
678
679 public final static Feature<String> LICENSE_FILE_LOCATION = new Feature<String>(
680 "http://saxon.sf.net/feature/licenseFileLocation", 37, PE, String.class, null);
681
682 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
683
684
685 /**
686 * <p>Default is false. If true, line and column number information is retained for all
687 * source documents. This information is accessible using the
688 * <code>saxon:line-number()</code> and <code>saxon:column-number()</code>
689 * extension functions.</p>
690 * <p>Note that the information is only as good as the XML parser supplies. SAX parsers
691 * generally report the position of an element node using the line and column number of
692 * the "&gt;" character that forms the last character of the start tag.</p>
693 * <p>When this option is set, location information attached to a node (system ID, line
694 * number, and column number) is retained when the node is copied. This has the side effect
695 * that the base URI of a node is also copied, which in some cases runs contrary to the
696 * XSLT or XQuery specification.</p>
697 *
698 **/
699
700 public final static Feature<Boolean> LINE_NUMBERING = new Feature<Boolean>(
701 "http://saxon.sf.net/feature/linenumbering", 38, HE, Boolean.class, false);
702
703 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
704
705
706 /**
707 * <p>Setting the <code>MARK_DEFAULTED_ATTRIBUTES</code> option causes Saxon to retain details of attributes
708 * that were notified by the XML parser as being defaulted (that is, the attribute was not present in the instance
709 * document but was defined by a default value in a DTD or schema). This information is available to applications
710 * via the <code>saxon:is-defaulted()</code> extension function.</p>
711 * <p>Note: information about defaulted attributes is retained automatically where the attribute is processed
712 * using Saxon's schema processor; but in the case where the information comes from an external XML parser, it
713 * is retained only if this option is set.</p>
714 *
715 **/
716
717 public final static Feature<Boolean> MARK_DEFAULTED_ATTRIBUTES = new Feature<Boolean>(
718 "http://saxon.sf.net/feature/markDefaultedAttributes", 39, HE, Boolean.class, false);
719
720 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
721
722
723 /**
724 * <p>Places a limit on the number of classes for which Saxon will generate bytecode.</p>
725 * <p>If bytecode generation is enabled, Saxon will generate bytecode for frequently used constructs appearing
726 * in stylesheets or queries. This can become problematic if a configuration uses a very large number
727 * of different stylesheets and queries, because it creates memory pressure (in some environments classes
728 * are never garbage collected). When this limit (which defaults to 10,000) is exceeded, no more bytecode
729 * is generated, and queries/stylesheets are interpreted instead.</p>
730 *
731 **/
732
733 public final static Feature<Integer> MAX_COMPILED_CLASSES = new Feature<Integer>(
734 "http://saxon.sf.net/feature/maxCompiledClasses", 40, EE, Integer.class, null);
735
736 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
737
738
739 /**
740 * <p>Use the specified <code>Receiver</code> to process the output from
741 * <code>xsl:message</code>. The class must implement the
742 * <code>net.sf.saxon.event.Receiver</code> interface. This interface is similar to
743 * a SAX <code>ContentHandler</code>, in that it takes a stream of events to generate
744 * output.</p>
745 * <p>By default the standard XML emitter is used, configured to write to the standard
746 * error stream, and to include no XML declaration. </p>
747 * <p>In general the content of a message is an XML fragment. Each message is output as a
748 * new document. The sequence of calls to this <code>Receiver</code> is as follows:
749 * there is a single <code>open()</code> call at the start of the transformation, and a
750 * single <code>close()</code> call at the end; and each evaluation of an
751 * <code>xsl:message</code> instruction starts with a <code>startDocument()</code>
752 * call and ends with <code>endDocument()</code>. </p>
753 * <p>The <code>startDocument()</code> event has a <code>properties</code> argument
754 * indicating whether <code>terminate="yes"</code> was specified, and the
755 * <code>locationId</code> on calls such as <code>startElement()</code> and
756 * <code>characters()</code> can be used to identify the location in the stylesheet
757 * where the message data originated (this is achieved by passing the supplied
758 * <code>locationId</code> in a call to
759 * <code>getPipelineConfiguration().getLocator().getSystemId(locationId)</code>, or
760 * to <code>getLineNumber()</code> on the same object). </p>
761 * <p>Select the class <code>net.sf.saxon.event.MessageWarner</code> to have
762 * <code>xsl:message</code> output notified to the JAXP <code>ErrorListener</code>,
763 * as described in the JAXP documentation.</p>
764 *
765 **/
766
767 public final static Feature<String> MESSAGE_EMITTER_CLASS = new Feature<String>(
768 "http://saxon.sf.net/feature/messageEmitterClass", 41, HE, String.class, null);
769
770 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
771
772
773 /**
774 * <p>Affects XQuery only. An instance of a user-written class implementing Saxon's
775 * {@link net.sf.saxon.lib.ModuleURIResolver} interface. This is used to
776 * process any URIs used in <code>import module</code> directives in XQuery.</p>
777 *
778 **/
779
780 public final static Feature<net.sf.saxon.lib.ModuleURIResolver> MODULE_URI_RESOLVER = new Feature<net.sf.saxon.lib.ModuleURIResolver>(
781 "http://saxon.sf.net/feature/moduleURIResolver", 42, HE, net.sf.saxon.lib.ModuleURIResolver.class, null);
782
783 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
784
785
786 /**
787 * <p>Affects XQuery only. The name of a user-written class implementing Saxon's
788 * {@link net.sf.saxon.lib.ModuleURIResolver} interface. This is used to
789 * process any URIs used in <code>import module</code> directives in XQuery.</p>
790 *
791 **/
792
793 public final static Feature<String> MODULE_URI_RESOLVER_CLASS = new Feature<String>(
794 "http://saxon.sf.net/feature/moduleURIResolverClass", 43, HE, String.class, null);
795
796 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
797
798
799 /**
800 * <p>When set from the Transform or Query command line, a report on bytecode generation is
801 * produced at the end of the transformation or query.</p>
802 * <p>When set from an application, the bytecode report is produced only on request, by
803 * calling <code>Configuration.createByteCodeReport(fileName)</code>.</p>
804 * <p>The bytecode report is an XML file containing one entry for each expression that has
805 * been compiled into bytecode. Each entry contains the following details, where
806 * applicable:</p>
807 * <ul>
808 * <li><code>text</code> Abbreviated text of the expression</li>
809 * <li><code>intCount</code> Number of times the expression was evaluated in the interpreter</li>
810 * <li><code>intTime</code> Cumulative time spent evaluating the expression (including subexpressions) in the interpreter</li>
811 * <li><code>bcCount</code> Number of times the expression was evaluated as byte-code</li>
812 * <li><code>bcTime</code> Cumulative time spent evaluating the expression (including subexpressions) as byte-code</li>
813 * <li><code>compileTime</code> Time spent generating bytecode for the expression</li>
814 * <li><code>ratio</code> Average byte-code execution time as a proportion of average interpreted execution time</li>
815 * <li><code>ebv</code> Number of evaluations of the expressions <code>effectiveBooleanValue()</code> method</li>
816 * <li><code>eval</code> Number of evaluations of the expressions <code>evaluateItem()</code> method</li>
817 * <li><code>iterate</code> Number of evaluations of the expressions <code>iterate()</code> method</li>
818 * <li><code>process</code> Number of evaluations of the expressions <code>process()</code> method</li>
819 * <li><code>module</code> URI of the module containing the expression</li>
820 * <li><code>line</code> Line number of the expression within this module</li>
821 * </ul>
822 *
823 **/
824
825 public final static Feature<Boolean> MONITOR_HOT_SPOT_BYTE_CODE = new Feature<Boolean>(
826 "http://saxon.sf.net/feature/monitorHotSpotByteCode", 44, EE, Boolean.class, false);
827
828 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
829
830
831 /**
832 * <p>Affects schema construction (whether for standalone validation, or in the context of
833 * XSLT or XQuery).</p>
834 * <p>If set to true, the schema processor attempts to fetch a schema
835 * document appearing in an <code>xs:import</code> directive, whether or not a schema
836 * for that namespace has already been loaded, unless the absolute URI formed from the
837 * <code>schemaLocation</code> is the same as the absolute URI that was used to
838 * load that namespace. If set to false, the schema processor ignores the
839 * <code>schemaLocation</code> on an <code>xs:import</code> declaration if schema
840 * components for the requested namespace are already available. Note that setting the
841 * value to true might cause spurious errors due to like-named schema components being
842 * loaded more than once. On the other hand, setting the value to false might result in
843 * validation failing because schema components are missing.</p>
844 * <p>Note: Both settings are conformant with the W3C recommendation, which leaves the
845 * details implementation-defined. It is possible (and advisable) to write schemas in
846 * such a way that this setting makes no difference, by ensuring that all imports for a
847 * particular namespace go via a "home" schema document for that namespace, where the
848 * home schema document contains <code>xs:include</code> declarations for all the
849 * schema documents defining components in that namespace.</p>
850 *
851 **/
852
853 public final static Feature<Boolean> MULTIPLE_SCHEMA_IMPORTS = new Feature<Boolean>(
854 "http://saxon.sf.net/feature/multipleSchemaImports", 45, EE, Boolean.class, false);
855
856 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
857
858
859 /**
860 * <p>Indicates that the supplied <code>NamePool</code> should be used as the target
861 * (run-time) <code>NamePool</code> by all stylesheets compiled (using
862 * <code>newTemplates()</code>) after this call on <code>setAttribute</code>.</p>
863 * <p>Normally a single system-allocated <code>NamePool</code> is used for all stylesheets
864 * compiled while the Java VM remains loaded; this attribute allows user control over
865 * the allocation of name pools. Note that source trees used as input to a
866 * transformation must be built using the same <code>NamePool</code> that is used when
867 * the stylesheet is compiled: this will happen automatically if the input to a
868 * transformation is supplied as a <code>SAXSource</code> or <code>StreamSource</code>
869 * but it is under user control if you build the source tree yourself.</p>
870 * <p>This option can be used to make two <code>Configuration</code> objects share a
871 * <code>NamePool</code> even though they differ in other respects.</p>
872 *
873 **/
874
875 public final static Feature<net.sf.saxon.om.NamePool> NAME_POOL = new Feature<net.sf.saxon.om.NamePool>(
876 "http://saxon.sf.net/feature/namePool", 46, HE, net.sf.saxon.om.NamePool.class, null);
877
878 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
879
880
881 /**
882 * <p><code>OCCURRENCE_LIMITS</code> determines the largest values of
883 * <code>minOccurs</code> and <code>maxOccurs</code> that can be accommodated when
884 * compiling an "expanded" finite state machine to represent an XSD content model
885 * grammar.</p>
886 * <p>These limits do not apply in the common cases where the grammar can be
887 * implemented using a counting finite-state-machine, but in those cases where this is
888 * not possible, any <code>minOccurs</code> value greater than the first integer is
889 * reduced to the value of the first integer, and any <code>maxOccurs</code> value
890 * greater than the second integer is treated as "unbounded".</p>
891 * <p>Setting these values too high may cause an <code>OutOfMemoryException</code> since
892 * the size of the finite state machine constructed by Saxon increases linearly with
893 * the values of <code>minOccurs</code> and <code>maxOccurs</code>.</p>
894 *
895 **/
896
897 public final static Feature<Object> OCCURRENCE_LIMITS = new Feature<Object>(
898 "http://saxon.sf.net/feature/occurrenceLimits", 47, EE, Object.class, null);
899
900 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
901
902
903 /**
904 * <p>Allows individual optimizations to be enabled or disabled selectively.</p>
905 * <p>There is a set of single-letter flags identifying particular optimizations:</p>
906 * <ul>
907 * <li>c: generate bytecode</li>
908 * <li>e: cache regular expressions</li>
909 * <li>f: inline functions</li>
910 * <li>g: extract global variables</li>
911 * <li>j: just-in-time compilation of template rules</li>
912 * <li>k: create keys</li>
913 * <li>l: loop lifting</li>
914 * <li>m: miscellaneous</li>
915 * <li>r: template rule-sets</li>
916 * <li>s: extract common subexpressions</li>
917 * <li>v: inline variables</li>
918 * <li>w: create switch statements</li>
919 * <li>x: index predicates</li>
920 * </ul>
921 * <p>A value such as <code>gs</code> runs with only the selected optimizations;
922 * <code>-gs</code> runs with the selected optimizations disabled and all others enabled. The
923 * value <code>0</code> suppresses all optimizations. The default is full optimization; this
924 * feature allows optimization to be suppressed in cases where reducing compile time is
925 * important, or where optimization gets in the way of debugging, or causes extension
926 * functions with side-effects to behave unpredictably. (Note however, that even with
927 * no optimization, lazy evaluation may still cause the evaluation order to be not as
928 * expected.) </p>
929 * <p><i>Note that disabling optimizations may prevent streamed execution. This is because
930 * there are cases where streamed execution is only possible because the optimizer is able to detect
931 * that sorting nodes into document order is unnecessary.</i></p>
932 *
933 **/
934
935 public final static Feature<Object> OPTIMIZATION_LEVEL = new Feature<Object>(
936 "http://saxon.sf.net/feature/optimizationLevel", 48, HE, Object.class, null);
937
938 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
939
940
941 /**
942 * <p>The supplied <code>OutputURIResolver</code> will be used to resolve URIs of secondary
943 * result documents selected in the <code>href</code> attribute of the XSLT
944 * <code>xsl:result-document</code> instruction.</p>
945 *
946 **/
947
948 public final static Feature<net.sf.saxon.lib.OutputURIResolver> OUTPUT_URI_RESOLVER = new Feature<net.sf.saxon.lib.OutputURIResolver>(
949 "http://saxon.sf.net/feature/outputURIResolver", 49, HE, net.sf.saxon.lib.OutputURIResolver.class, null);
950
951 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
952
953
954 /**
955 * <p>The supplied class will be instantiated, and the resulting
956 * <code>OutputURIResolver</code> will be used to resolve URIs of secondary result
957 * documents selected in the <code>href</code> attribute of the XSLT
958 * <code>xsl:result-document</code> instruction.</p>
959 *
960 **/
961
962 public final static Feature<String> OUTPUT_URI_RESOLVER_CLASS = new Feature<String>(
963 "http://saxon.sf.net/feature/outputURIResolverClass", 50, HE, String.class, null);
964
965 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
966
967
968 /**
969 * <p>If true, calls on the <code>doc()</code> and <code>document()</code> functions, if
970 * their arguments are known at compile time, will be evaluated at compile time, and
971 * the resulting document will be stored as part of the Saxon
972 * {@link net.sf.saxon.Configuration} and shared by all queries and
973 * transformations running within that <code>Configuration</code>.</p>
974 * <p>This is useful for reference documents that have stable content and are used by many different
975 * queries and transformations. The default is false, which means each query or transformation
976 * will reload the document from disk.</p>
977 * <p>In XSLT 3.0 a better way of having external documents pre-loaded at stylesheet
978 * compile time is to use the new facility of static global variables.</p>
979 *
980 **/
981
982 public final static Feature<Boolean> PRE_EVALUATE_DOC_FUNCTION = new Feature<Boolean>(
983 "http://saxon.sf.net/feature/preEvaluateDocFunction", 51, HE, Boolean.class, false);
984
985 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
986
987
988 /**
989 * <p>Relevant only on .NET, determines whether the Java Classpath parser is used in
990 * preference to the Microsoft .NET parser.</p>
991 * <p>This option has no effect on the Java platform. The default is <b>true</b>. When
992 * running on the .NET platform, if the option is true it causes the Apache Xerces
993 * parser (cross-compiled using IKVMC) to be used in preference to the .NET XML parser.
994 * If false the .NET XML parser (<code>System.Xml.XmlTextReader</code>) is used. One
995 * reason for providing this option is that the .NET XML parser does not report ID
996 * attributes, which means that the <code>id()</code> function does not work.</p>
997 *
998 **/
999
1000 public final static Feature<Boolean> PREFER_JAXP_PARSER = new Feature<Boolean>(
1001 "http://saxon.sf.net/feature/preferJaxpParser", 52, HE, Boolean.class, false);
1002
1003 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1004
1005
1006 /**
1007 * <p>True if the standard URI resolver is to recognize query parameters included in
1008 * the URI (for example, <code>?val=strict</code>). Such parameters can then be used in
1009 * URIs passed to the <code>doc()</code> or <code>document()</code> functions. For
1010 * details of the query parameters available, see <span class="link" data-href="/sourcedocs">Source Documents</span>. The default is false.</p>
1011 * <p>This option has no effect if a user-supplied <code>URIResolver</code> is in use,
1012 * unless the user-supplied <code>URIResolver</code> chooses to inherit this
1013 * functionality from the standard <code>URIResolver</code>.</p>
1014 * <p>Allowed parameters include <code>validation=strict|lax|strip</code> to perform schema
1015 * validation, <code>strip-space=yes|ignorable|no</code> to control whitespace
1016 * stripping, and <code>xinclude=yes|no</code> to control whether XInclude processing
1017 * takes place (assuming the XML parser supports it).</p>
1018 *
1019 **/
1020
1021 public final static Feature<Boolean> RECOGNIZE_URI_QUERY_PARAMETERS = new Feature<Boolean>(
1022 "http://saxon.sf.net/feature/recognize-uri-query-parameters", 53, HE, Boolean.class, false);
1023
1024 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1025
1026
1027 /**
1028 * <p>An integer, one of {@link net.sf.saxon.Configuration#RECOVER_SILENTLY},
1029 * {@link net.sf.saxon.Configuration#RECOVER_WITH_WARNINGS}, or
1030 * {@link net.sf.saxon.Configuration#DO_NOT_RECOVER}. Indicates the policy for
1031 * handling dynamic errors that the XSLT specification defines as recoverable.</p>
1032 * <p>0 means recover silently; 1 means recover after signalling a warning to the
1033 * <code>ErrorListener</code>; 2 means treat the error as fatal. An example of a
1034 * recoverable error is when two template rules match the same node.</p>
1035 * <p>Note that XSLT 3.0 has eliminated all "recoverable errors" from the
1036 * specification.</p>
1037 *
1038 **/
1039
1040 public final static Feature<Integer> RECOVERY_POLICY = new Feature<Integer>(
1041 "http://saxon.sf.net/feature/recoveryPolicy", 54, HE, Integer.class, null);
1042
1043 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1044
1045
1046 /**
1047 * <p>Indicates the policy for handling dynamic errors that the XSLT specification defines
1048 * as recoverable.</p>
1049 * <p>"recoverSilently" means recover silently; "recoverWithWarnings"
1050 * means recover after signalling a warning to the <code>ErrorListener</code>;
1051 * "doNotRecover" means treat the error as fatal. An example of a recoverable error is
1052 * when two template rules match the same node. </p>
1053 * <p>Note that XSLT 3.0 has eliminated all "recoverable errors" from the
1054 * specification.</p>
1055 *
1056 **/
1057
1058 public final static Feature<String> RECOVERY_POLICY_NAME = new Feature<String>(
1059 "http://saxon.sf.net/feature/recoveryPolicyName", 55, HE, String.class, null);
1060
1061 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1062
1063
1064 /**
1065 * <p>Indicates the maximum number of threads to be used for processing
1066 * <code>xsl:result-document</code> instructions in parallel. If the maximum number
1067 * of threads are already in use, the <code>xsl:result-document</code> instruction will
1068 * be executed synchronously within its parent thread.</p>
1069 * <p>The default value is initialized to
1070 * <code>Runtime.getRuntime().availableProcessors()</code> which is intended to
1071 * represent the number of "processors" (under some definition) available from the
1072 * hardware.</p>
1073 * <p>The limit applies per <code>Configuration</code>. If multiple workloads are running
1074 * on the same server under separate Saxon <code>Configuration</code> objects, then it
1075 * may be desirable to lower the limit.</p>
1076 * <p>Setting a value of zero or one suppresses multithreading entirely. This can also be
1077 * achieved (for a specific <code>xsl:result-document</code> instruction) by setting
1078 * the attribute <code>saxon:asynchronous="no"</code> in the stylesheet. Suppressing
1079 * multithreading may be desirable in a stylesheet that calls extension functions with
1080 * side-effects.</p>
1081 *
1082 **/
1083
1084 public final static Feature<Integer> RESULT_DOCUMENT_THREADS = new Feature<Integer>(
1085 "http://saxon.sf.net/feature/resultDocumentThreads", 56, EE, Integer.class, null);
1086
1087 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1088
1089
1090 /**
1091 * <p>If set to true, indicates that when input is obtained from a SAX parser, the
1092 * DTD-based attribute type notified by the XML parser should be used to set the type
1093 * annotation of the resulting node: for example a DTD type of NMTOKENS results in a
1094 * type annotation of xs:NMTOKENS. </p>
1095 * <p>This option is retained for backwards compatibility (at some time in the past, it was
1096 * the default), but is deprecated.</p>
1097 *
1098 **/
1099
1100 public final static Feature<Boolean> RETAIN_DTD_ATTRIBUTE_TYPES = new Feature<Boolean>(
1101 "http://saxon.sf.net/feature/retain-dtd-attribute-types", 57, HE, Boolean.class, false);
1102
1103 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1104
1105
1106 /**
1107 * <p>The supplied <code>SchemaURIResolver</code> will be used to resolve URIs of schema
1108 * documents referenced in <code>xsl:import-schema</code> declarations in XSLT,
1109 * <code>import schema</code> in XQuery, references from one schema document to
1110 * another using <code>xs:include</code> or <code>xs:import</code>, and references from
1111 * an instance document to a schema using <code>xsi:schemaLocation</code>.</p>
1112 *
1113 **/
1114
1115 public final static Feature<net.sf.saxon.lib.SchemaURIResolver> SCHEMA_URI_RESOLVER = new Feature<net.sf.saxon.lib.SchemaURIResolver>(
1116 "http://saxon.sf.net/feature/schemaURIResolver", 58, EE, net.sf.saxon.lib.SchemaURIResolver.class, null);
1117
1118 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1119
1120
1121 /**
1122 * <p>The name of a class that implements the interface <code>SchemaURIResolver</code>;
1123 * this class will be instantiated and the resulting instance will be used as the value
1124 * of the {@link net.sf.saxon.lib.Feature#SCHEMA_URI_RESOLVER} property.</p>
1125 *
1126 **/
1127
1128 public final static Feature<String> SCHEMA_URI_RESOLVER_CLASS = new Feature<String>(
1129 "http://saxon.sf.net/feature/schemaURIResolverClass", 59, EE, String.class, null);
1130
1131 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1132
1133
1134 /**
1135 * <p>Indicates whether and how schema validation should be applied to source
1136 * documents.</p>
1137 *
1138 **/
1139
1140 public final static Feature<Integer> SCHEMA_VALIDATION = new Feature<Integer>(
1141 "http://saxon.sf.net/feature/schema-validation", 60, EE, Integer.class, null);
1142
1143 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1144
1145
1146 /**
1147 * <p>Indicates whether and how schema validation should be applied to source
1148 * documents.</p>
1149 *
1150 **/
1151
1152 public final static Feature<String> SCHEMA_VALIDATION_MODE = new Feature<String>(
1153 "http://saxon.sf.net/feature/schema-validation-mode", 61, EE, String.class, null);
1154
1155 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1156
1157
1158 /**
1159 * <p>The class will be instantiated and the resulting <code>SerializerFactory</code> will
1160 * be used to create the serialization pipeline for XSLT and XQuery results.</p>
1161 * <p>By subclassing the standard <code>SerializerFactory</code> it is possible to customize
1162 * many aspects of the output produced by the Serializer, or to introduce new
1163 * serialization methods and parameters.</p>
1164 *
1165 **/
1166
1167 public final static Feature<String> SERIALIZER_FACTORY_CLASS = new Feature<String>(
1168 "http://saxon.sf.net/feature/serializerFactoryClass", 62, HE, String.class, null);
1169
1170 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1171
1172
1173 /**
1174 * <p>XML parser used for source documents.</p>
1175 * <p>The class will be instantiated. If it is an <code>XMLReader</code> it is used
1176 * directly; if it is a <code>SAXParserFactory</code> it is used to instantiate an
1177 * <code>XMLReader</code>. The resulting <code>XMLReader</code> will be used to
1178 * parse source documents (that is, the principal source document plus any secondary
1179 * source documents read using the <code>doc()</code>, <code>document()</code>, or
1180 * <code>collection()</code> function).</p>
1181 * <p>Note that the selected parser is used only when the input is supplied in the form of
1182 * a <code>StreamSource</code>; it is ignored when a <code>SAXSource</code> with a
1183 * pre-initialized <code>XMLReader</code> is supplied. A consequence is that this
1184 * configuration option has no effect when running transformations from an Ant script,
1185 * since the Ant <code>xslt</code> task always supplies the input in the form of a
1186 * <code>SAXSource</code>.</p>
1187 *
1188 **/
1189
1190 public final static Feature<String> SOURCE_PARSER_CLASS = new Feature<String>(
1191 "http://saxon.sf.net/feature/sourceParserClass", 63, HE, String.class, null);
1192
1193 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1194
1195
1196 /**
1197 * <p>On interfaces that allow an <code>org.xml.sax.Source</code> to be supplied, if a kind
1198 * of <code>Source</code> is provided that Saxon does not recognize, it will be passed
1199 * to the user-supplied <code>SourceResolver</code>, which has the opportunity to
1200 * convert it to a kind of <code>Source</code> that Saxon does recognize. This allows
1201 * new kinds of input to be supplied as input to Saxon's query, transformation, and
1202 * validation engines.</p>
1203 *
1204 **/
1205
1206 public final static Feature<String> SOURCE_RESOLVER_CLASS = new Feature<String>(
1207 "http://saxon.sf.net/feature/sourceResolverClass", 64, HE, String.class, null);
1208
1209 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1210
1211
1212 /**
1213 * <p><code>STABLE_COLLECTION_URI</code>, if set, indicates that collections returned by
1214 * the <code>fn:collection()</code> and <code>fn:uri-collection()</code> functions
1215 * should be <i>stable</i>, that is, repeated calls on these functions with the same
1216 * collection URI (within the scope of a single query or transformation) should return
1217 * identical results.</p>
1218 * <p>Setting this option may be expensive because it requires that the entire collection
1219 * be saved in memory; it is rarely necessary in practice, but is required for strict
1220 * conformance with the W3C specifications.</p>
1221 * <p>It is also possible to indicate that a collection is stable by means of the
1222 * <code>CollectionFinder</code> API.</p>
1223 *
1224 **/
1225
1226 public final static Feature<Boolean> STABLE_COLLECTION_URI = new Feature<Boolean>(
1227 "http://saxon.sf.net/feature/stableCollectionUri", 65, HE, Boolean.class, false);
1228
1229 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1230
1231
1232 /**
1233 * <p><code>STABLE_UNPARSED_TEXT</code>, if set, indicates that the results returned by
1234 * repeated calls of <code>unparsed-text()</code>, <code>unparsed-text-lines()</code>,
1235 * and <code>unparsed-text-available()</code> are consistent: calling these functions
1236 * twice during the evaluation of a stylesheet or query will return the same
1237 * results.</p>
1238 * <p>Setting this option may be expensive because it requires that the file contents be
1239 * saved in memory; it is rarely necessary in practice, but is required for strict
1240 * conformance with the W3C specifications.</p>
1241 *
1242 **/
1243
1244 public final static Feature<Boolean> STABLE_UNPARSED_TEXT = new Feature<Boolean>(
1245 "http://saxon.sf.net/feature/stableUnparsedText", 66, HE, Boolean.class, false);
1246
1247 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1248
1249
1250 /**
1251 * <p><code>STANDARD_ERROR_OUTPUT_FILE</code> is the name of a file to which Saxon will
1252 * redirect output that would otherwise go to the operating system standard error
1253 * stream (System.err). This is the fallback destination for various tracing and
1254 * diagnostic output. In some cases a more specific mechanism exists to select the
1255 * destination for particular kinds of output.</p>
1256 * <p>Note that if the <code>Configuration</code> is used in more than one processing
1257 * thread, the messages from different threads will be interleaved in the output file.
1258 * A more selective approach is to use a different <code>ErrorListener</code> in
1259 * different processing threads, and arrange for each <code>ErrorListener</code> to
1260 * write to its own logging destination.</p>
1261 *
1262 **/
1263
1264 public final static Feature<String> STANDARD_ERROR_OUTPUT_FILE = new Feature<String>(
1265 "http://saxon.sf.net/feature/standardErrorOutputFile", 67, HE, String.class, null);
1266
1267 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1268
1269
1270 /**
1271 * <p>The <code>STREAMABILITY</code> option can be used to disable streaming.</p>
1272 * <p>In earlier Saxon releases a third value "extended" was supported, to enable Saxon
1273 * streaming extensions. Since nearly all these extensions found their way into the W3C
1274 * specification, the distinction between "standard" and "extended" became meaningless,
1275 * so the value "extended" has been dropped.</p>
1276 * <p>The value "off" causes Saxon to behave as a non-streaming processor; that is, it does
1277 * not analyze constructs that are declared streamable, and it processes them as if
1278 * streaming were not requested. This is the only option available when using a Saxon
1279 * version or license that does not enable streaming.</p>
1280 * <p>The value "standard" is a misnomer. For strict adherence to W3C streamability rules,
1281 * set the property <code>STRICT_STREAMABILITY</code>. The streamability rules applied
1282 * by default are (in nearly all cases) identical to the W3C rules, but by default they
1283 * are applied to the expression tree after type-checking and optimization, which makes
1284 * some constructs streamable that would not be so otherwise.</p>
1285 * <p>Whichever option is chosen, the <code>STREAMING_FALLBACK</code> option can be used to
1286 * control what happens when code is deemed non-streamable; it provides a choice
1287 * between throwing a static (compile-time) error, and falling back to a non-streaming
1288 * implementation.</p>
1289 *
1290 **/
1291
1292 public final static Feature<String> STREAMABILITY = new Feature<String>(
1293 "http://saxon.sf.net/feature/streamability", 68, EE, String.class, null);
1294
1295 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1296
1297
1298 /**
1299 * <p>Causes the XSLT processor to verify that constructs that are declared streamable are
1300 * in fact "guaranteed streamable" according to the W3C rules.</p>
1301 * <p>Normally, Saxon performs a variety of simplifications and optimizations on the
1302 * expression tree before performing streamability analysis. Sometimes these tree
1303 * rewrites will turn a non-streamable expression into a streamable one. An obvious
1304 * example is variable inlining: the expression <code>let $x := ./item/price return
1305 * sum($x)</code> is not streamable, but the rewritten form
1306 * <code>sum(./item/price)</code> is.</p>
1307 * <p>The XSLT 3.0 specification requires conformant streaming processors to have a mode of
1308 * operation in which the streamability rules are enforced as they appear in the spec,
1309 * and this option enables this mode.</p>
1310 * <p>This analysis is expensive, and should only be used during development when testing
1311 * stylesheet code for portability. When this mode is enabled, Saxon applies the
1312 * streamability rules at the earliest possible stage of processing; it then performs
1313 * its normal type checking and optimization phases, before doing a second stage of
1314 * streamability analysis to construct a streamed execution plan.</p>
1315 *
1316 **/
1317
1318 public final static Feature<Boolean> STRICT_STREAMABILITY = new Feature<Boolean>(
1319 "http://saxon.sf.net/feature/strictStreamability", 69, EE, Boolean.class, false);
1320
1321 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1322
1323
1324 /**
1325 * <p>If the <code>STREAMING_FALLBACK</code> option is set, then constructs for which
1326 * streaming is requested (such as templates in a streaming mode, the
1327 * <code>xsl:source-document</code> instruction with attribute
1328 * <code>streamable="yes"</code>, and streamable accumulators) will be executed in
1329 * non-streaming mode if the code is not actually streamable. A compile-time warning
1330 * will always be given when the fallback option is taken.</p>
1331 *
1332 **/
1333
1334 public final static Feature<Boolean> STREAMING_FALLBACK = new Feature<Boolean>(
1335 "http://saxon.sf.net/feature/streamingFallback", 70, HE, Boolean.class, false);
1336
1337 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1338
1339
1340 /**
1341 * <p>Indicates whether all whitespace, no whitespace, or whitespace in elements defined in
1342 * a DTD or schema as having element-only content should be stripped from source
1343 * documents.</p>
1344 * <p>The default is "ignorable". This whitespace stripping is additional to
1345 * any stripping done as a result of the <code>xsl:strip-space</code> declaration in an
1346 * XSLT stylesheet.</p>
1347 *
1348 **/
1349
1350 public final static Feature<String> STRIP_WHITESPACE = new Feature<String>(
1351 "http://saxon.sf.net/feature/strip-whitespace", 71, HE, String.class, null);
1352
1353 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1354
1355
1356 /**
1357 * <p>XML parser used for stylesheets and schema documents.</p>
1358 * <p>The class will be instantiated. If it is an <code>XMLReader</code> it is used
1359 * directly; if it is a <code>SAXParserFactory</code> it is used to instantiate an
1360 * <code>XMLReader</code>. The resulting <code>XMLReader</code> will be used to
1361 * parse stylesheet documents (that is, the principal stylesheet module plus any
1362 * secondary source documents read using <code>xsl:include</code> or
1363 * <code>xsl:import</code>) and also schema documents.</p>
1364 *
1365 **/
1366
1367 public final static Feature<String> STYLE_PARSER_CLASS = new Feature<String>(
1368 "http://saxon.sf.net/feature/styleParserClass", 72, HE, String.class, null);
1369
1370 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1371
1372
1373 /**
1374 * <p>This is set to true to suppress the warning otherwise issued by command-line
1375 * interfaces indicating that an evaluation license is in use and is due to expire in a
1376 * set number of days.</p>
1377 *
1378 **/
1379
1380 public final static Feature<Boolean> SUPPRESS_EVALUATION_EXPIRY_WARNING = new Feature<Boolean>(
1381 "http://saxon.sf.net/feature/suppressEvaluationExpiryWarning", 73, PE, Boolean.class, false);
1382
1383 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1384
1385
1386 /**
1387 * <p>Suppresses all warnings issued by the XPath and XQuery parsers.</p>
1388 * <p>Examples of warnings that are suppressed are the warning produced when keywords such
1389 * as <code>true</code> and <code>return</code> are interpreted as element names.</p>
1390 *
1391 **/
1392
1393 public final static Feature<Boolean> SUPPRESS_XPATH_WARNINGS = new Feature<Boolean>(
1394 "http://saxon.sf.net/feature/suppressXPathWarnings", 74, HE, Boolean.class, false);
1395
1396 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1397
1398
1399 /**
1400 * <p>This is set to true to suppress the warning when there is no commonality between the
1401 * namespaces used in stylesheet match patterns and the namespaces used in the source
1402 * document.</p>
1403 *
1404 **/
1405
1406 public final static Feature<Boolean> SUPPRESS_XSLT_NAMESPACE_CHECK = new Feature<Boolean>(
1407 "http://saxon.sf.net/feature/suppressXsltNamespaceCheck", 75, HE, Boolean.class, false);
1408
1409 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1410
1411
1412 /**
1413 * <p>Indicates how often an XSD simple type definition must be used before Saxon generates
1414 * bytecode to implement validation of input data against that type.</p>
1415 * <p>By default, Saxon-EE generates Java bytecode to speed up the validation of input
1416 * strings against user-defined simple types after the type has been used 100 times
1417 * (during the life of a Saxon Configuration). This threshold may be changed using this
1418 * configuration option. It may be useful to raise the threshold if the number of
1419 * user-defined types is large, and the bytecode is creating memory pressure.</p>
1420 *
1421 **/
1422
1423 public final static Feature<Integer> THRESHOLD_FOR_COMPILING_TYPES = new Feature<Integer>(
1424 "http://saxon.sf.net/feature/thresholdForCompilingTypes", 76, HE, Integer.class, null);
1425
1426 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1427
1428
1429 /**
1430 * <p>This is set to true to cause basic timing and tracing information to be output to the
1431 * standard error output stream.</p>
1432 * <p>The name of the feature is poorly chosen, since much
1433 * of the information that is output has nothing to do with timing, for example the
1434 * names of output files for <code>xsl:result-document</code> are traced, as are the
1435 * names of schema documents loaded.</p>
1436 *
1437 **/
1438
1439 public final static Feature<Boolean> TIMING = new Feature<Boolean>(
1440 "http://saxon.sf.net/feature/timing", 77, HE, Boolean.class, false);
1441
1442 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1443
1444
1445 /**
1446 * <p>If this option is set, Saxon will output (to the standard error output) progress
1447 * information about its attempts to locate and disambiguate references to reflexive
1448 * Java extension functions. This is useful for diagnostics if the XQuery or XSLT
1449 * compiler is failing to locate user-written extension functions.</p>
1450 *
1451 **/
1452
1453 public final static Feature<Boolean> TRACE_EXTERNAL_FUNCTIONS = new Feature<Boolean>(
1454 "http://saxon.sf.net/feature/trace-external-functions", 78, PE, Boolean.class, false);
1455
1456 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1457
1458
1459 /**
1460 * <p>The <code>TraceListener</code> will be notified of significant events occurring
1461 * during a query or transformation, for tracing or debugging purposes.</p>
1462 * <p>Setting a <code>TraceListener</code> automatically sets the
1463 * {@link net.sf.saxon.lib.Feature#COMPILE_WITH_TRACING} option.</p>
1464 * <p>Avoid this option if more than one transformation or query is running concurrently:
1465 * use the feature {@link net.sf.saxon.lib.Feature#TRACE_LISTENER_CLASS}
1466 * instead. Alternatively, it is possible to set a <code>TraceListener</code> for an
1467 * individual query or transformation.</p>
1468 *
1469 **/
1470
1471 public final static Feature<net.sf.saxon.lib.TraceListener> TRACE_LISTENER = new Feature<net.sf.saxon.lib.TraceListener>(
1472 "http://saxon.sf.net/feature/traceListener", 79, HE, net.sf.saxon.lib.TraceListener.class, null);
1473
1474 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1475
1476
1477 /**
1478 * <p>The class will be instantiated once for each query or transformation, and the
1479 * resulting <code>TraceListener</code> will be notified of significant events
1480 * occurring during that query or transformation, for tracing or debugging
1481 * purposes.</p>
1482 * <p>Setting a <code>TraceListener</code> automatically sets the
1483 * {@link net.sf.saxon.lib.Feature#COMPILE_WITH_TRACING} option.</p>
1484 *
1485 **/
1486
1487 public final static Feature<String> TRACE_LISTENER_CLASS = new Feature<String>(
1488 "http://saxon.sf.net/feature/traceListenerClass", 80, HE, String.class, null);
1489
1490 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1491
1492
1493 /**
1494 * <p>When trace listening is switched on (for example by using -T on the command line),
1495 * this file will be supplied to the trace listener to use as the output destination.
1496 * If the option is not supplied, trace listener output is sent to the standard error
1497 * stream.</p>
1498 *
1499 **/
1500
1501 public final static Feature<String> TRACE_LISTENER_OUTPUT_FILE = new Feature<String>(
1502 "http://saxon.sf.net/feature/traceListenerOutputFile", 81, HE, String.class, null);
1503
1504 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1505
1506
1507 /**
1508 * <p>If this option is set, Saxon will output (to the standard error output) detailed
1509 * information about the rewrites to the expression tree made by the optimizer. This
1510 * information is mainly useful for internal system debugging, but it is also possible
1511 * to digest it to analyze the ways in which the expression has been optimized for the
1512 * purpose of performance analysis and tuning.</p>
1513 *
1514 **/
1515
1516 public final static Feature<Boolean> TRACE_OPTIMIZER_DECISIONS = new Feature<Boolean>(
1517 "http://saxon.sf.net/feature/trace-optimizer-decisions", 82, PE, Boolean.class, false);
1518
1519 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1520
1521
1522 /**
1523 * <p>Selects an implementation of the Saxon tree model. The default is
1524 * <code>TINY_TREE</code>.</p>
1525 * <p>For running XQuery Update, use the linked tree, because it is the only implementation
1526 * that is updateable.</p>
1527 *
1528 **/
1529
1530 public final static Feature<Integer> TREE_MODEL = new Feature<Integer>(
1531 "http://saxon.sf.net/feature/treeModel", 83, HE, Integer.class, null);
1532
1533 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1534
1535
1536 /**
1537 * <p>Selects an implementation of the Saxon tree model. The default is
1538 * <code>tinyTree</code>.</p>
1539 * <p>For running XQuery Update, use the linked tree, because it is the only implementation
1540 * that is updateable.</p>
1541 *
1542 **/
1543
1544 public final static Feature<String> TREE_MODEL_NAME = new Feature<String>(
1545 "http://saxon.sf.net/feature/treeModelName", 84, HE, String.class, null);
1546
1547 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1548
1549
1550 /**
1551 * <p>The supplied <code>UnparsedTextURIResolver</code> will be used to resolve
1552 * (dereference) all URIs specifed in calls to the <code>unparsed-text()</code>,
1553 * <code>unparsed-text-lines()</code>, and <code>unparsed-text-available()</code>
1554 * functions.</p>
1555 *
1556 **/
1557
1558 public final static Feature<net.sf.saxon.lib.UnparsedTextURIResolver> UNPARSED_TEXT_URI_RESOLVER = new Feature<net.sf.saxon.lib.UnparsedTextURIResolver>(
1559 "http://saxon.sf.net/feature/unparsedTextURIResolver", 85, HE, net.sf.saxon.lib.UnparsedTextURIResolver.class, null);
1560
1561 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1562
1563
1564 /**
1565 * <p>An instance of the specified <code>UnparsedTextURIResolver</code> class will be
1566 * created, and used to resolve (dereference) all URIs specifed in calls to the
1567 * <code>unparsed-text()</code>, <code>unparsed-text-lines()</code>, and
1568 * <code>unparsed-text-available()</code> functions.</p>
1569 *
1570 **/
1571
1572 public final static Feature<String> UNPARSED_TEXT_URI_RESOLVER_CLASS = new Feature<String>(
1573 "http://saxon.sf.net/feature/unparsedTextURIResolverClass", 86, HE, String.class, null);
1574
1575 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1576
1577
1578 /**
1579 * <p>An instance of the specified <code>URIResolver</code> class will be created, and used
1580 * to resolve (dereference) all URIs specifed in calls to the <code>doc()</code> and
1581 * <code>document()</code> functions, as well as URIs used in
1582 * <code>xsl:include</code> and <code>xsl:import</code> and location hints for
1583 * XQuery modules and XSD schema documents.</p>
1584 *
1585 **/
1586
1587 public final static Feature<String> URI_RESOLVER_CLASS = new Feature<String>(
1588 "http://saxon.sf.net/feature/uriResolverClass", 87, HE, String.class, null);
1589
1590 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1591
1592
1593 /**
1594 * <p>This option determines whether a <code>TransformerHandler</code> created with this
1595 * <code>TransformerFactory</code> or <code>Configuration</code> recognizes the
1596 * JAXP-defined processing instructions <code>Result.PI_DISABLE_OUTPUT_ESCAPING</code>
1597 * and <code>Result.PI_ENABLE_OUTPUT_ESCAPING</code> in the input stream as
1598 * instructions to disable or to re-enable output escaping. The default value is
1599 * <b>false</b>.</p>
1600 *
1601 **/
1602
1603 public final static Feature<Boolean> USE_PI_DISABLE_OUTPUT_ESCAPING = new Feature<Boolean>(
1604 "http://saxon.sf.net/feature/use-pi-disable-output-escaping", 88, HE, Boolean.class, false);
1605
1606 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1607
1608
1609 /**
1610 * <p>This option is relevant only when the TinyTree is used; it determines whether (for a
1611 * validated document) a cache will be maintained containing the typed values of nodes.</p>
1612 * <p>Typed values are held in the cache only for elements and attributes whose type is
1613 * other than string, untypedAtomic, or anyURI. The default value is true. Setting this
1614 * value to false can reduce memory requirements at the cost of requiring recomputation
1615 * of typed values on each access.</p>
1616 *
1617 **/
1618
1619 public final static Feature<Boolean> USE_TYPED_VALUE_CACHE = new Feature<Boolean>(
1620 "http://saxon.sf.net/feature/use-typed-value-cache", 89, EE, Boolean.class, false);
1621
1622 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1623
1624
1625 /**
1626 * <p>This option determines whether or not to use the <code>xsi:schemaLocation</code>
1627 * and<code> xsi:noNamespaceSchemaLocation</code> attributes in an instance
1628 * document to locate a schema for validation.</p>
1629 * <p>Note, these attribute are only consulted if validation is requested; the presence of
1630 * one of these attributes never by itself triggers validation.</p>
1631 *
1632 **/
1633
1634 public final static Feature<Boolean> USE_XSI_SCHEMA_LOCATION = new Feature<Boolean>(
1635 "http://saxon.sf.net/feature/useXsiSchemaLocation", 90, EE, Boolean.class, false);
1636
1637 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1638
1639
1640 /**
1641 * <p>This option determines whether non-fatal validation errors in XQuery or XSLT result
1642 * documents should result in comments being inserted into the result tree. The
1643 * command-line flag <code>-outval:recover</code> sets both this option and the
1644 * {@link net.sf.saxon.lib.Feature#VALIDATION_WARNINGS} option.</p>
1645 *
1646 **/
1647
1648 public final static Feature<Boolean> VALIDATION_COMMENTS = new Feature<Boolean>(
1649 "http://saxon.sf.net/feature/validation-comments", 91, EE, Boolean.class, false);
1650
1651 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1652
1653
1654 /**
1655 * <p>This option indicates (if true) that errors occuring while validating a final result
1656 * tree are not to be treated as fatal.</p>
1657 * <p>Regardless of the setting of this option, all validation errors are reported to the
1658 * <code>error()</code> method of the <code>ErrorListener</code>, and validation is
1659 * terminated if the <code>error()</code> method throws an exception, or if the error
1660 * limit set in the <code>ParseOptions</code> object is reached.</p>
1661 * <p>This option primarily controls what happens at the end of a validation episode. If
1662 * the validation episode detected one or more validation errors, then when this option
1663 * is off, an exception is thrown, which will normally result in any query or
1664 * stylesheet failing with a dynamic error, and no output file being written. If the
1665 * option is on, no exception is thrown, and the output is written as if validation had
1666 * been successful. Note in this case that any type annotations present in a result
1667 * document are unreliable.</p>
1668 * <p>If this option is set when running XSLT or XQuery, it is ignored as far as input
1669 * files are concerned: validation errors in input files are still fatal. However, if
1670 * the option is set and a validation error occurs in a final output file, the output
1671 * file is still written and the process terminates as if successful.</p>
1672 * <p>The detailed interpretation of this option changed in Saxon 9.5.</p>
1673 *
1674 **/
1675
1676 public final static Feature<Boolean> VALIDATION_WARNINGS = new Feature<Boolean>(
1677 "http://saxon.sf.net/feature/validation-warnings", 92, EE, Boolean.class, false);
1678
1679 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1680
1681
1682 /**
1683 * <p>Indicates whether a warning message should be notified (to the
1684 * <code>ErrorListener</code>) if running Saxon against an XSLT stylesheet that
1685 * specifies <code>version="1.0"</code>.</p>
1686 * <p>From Saxon 9.8, the warning is no longer output (since XSLT 3.0 does not require
1687 * it), so this option is ignored.</p>
1688 *
1689 *
1690 **/
1691
1692 public final static Feature<Boolean> VERSION_WARNING = new Feature<Boolean>(
1693 "http://saxon.sf.net/feature/version-warning", 93, HE, Boolean.class, false);
1694
1695 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1696
1697
1698 /**
1699 * <p>Indicates whether source documents should have any XInclude directives expanded.</p>
1700 * <p>The default is false. The option applies to all input XML documents, including
1701 * stylesheets and schema documents. It can be overridden for individual documents
1702 * using the {@link net.sf.saxon.lib.ParseOptions} class.</p>
1703 * <p>This option relies on support in the underlying XML parser. If the XML parser does
1704 * not support XInclude processing, the option is ignored.</p>
1705 *
1706 **/
1707
1708 public final static Feature<Boolean> XINCLUDE = new Feature<Boolean>(
1709 "http://saxon.sf.net/feature/xinclude-aware", 94, HE, Boolean.class, false);
1710
1711 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1712
1713
1714 /**
1715 * <p>This determines the XML version used by the <code>Configuration</code>.</p>
1716 * <p>Note that source documents specifying <code>xml version="1.0"</code> or
1717 * <code>"1.1"</code> are accepted regardless of this setting. The effect of this
1718 * switch is to change the validation rules for types such as <code>xs:Name</code> and
1719 * <code>xs:NCName</code>, to change the characters allowed in names within XPath
1720 * expressions (etc.), to change the meaning of <code>\i</code> and <code>\c</code> in
1721 * regular expressions, and to determine whether the serializer allows XML 1.1
1722 * documents to be constructed. </p>
1723 * <p>The default is currently 1.0, but may change.</p>
1724 *
1725 **/
1726
1727 public final static Feature<String> XML_VERSION = new Feature<String>(
1728 "http://saxon.sf.net/feature/xml-version", 95, HE, String.class, null);
1729
1730 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1731
1732
1733 /**
1734 * <p>Sets the value of a parser feature flag. The feature name is any fully-qualified
1735 * URI.</p>
1736 * <p>For example if the parser supports a feature
1737 * <code>http://xml.org/sax/features/external-parameter-entities</code> then this
1738 * can be set by setting the value of the Configuration property:
1739 * <code>http://saxon.sf.net/feature/parserFeature?uri=http%3A//xml.org/sax/features/external-parameter-entities</code>
1740 * to true.</p>
1741 *
1742 **/
1743
1744 public final static Feature<Boolean> XML_PARSER_FEATURE = new Feature<Boolean>(
1745 "http://saxon.sf.net/feature/parserFeature?uri=", 96, HE, Boolean.class, false);
1746
1747 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1748
1749
1750 /**
1751 * <p>Sets the value of a parser property flag. The property name is any fully-qualified
1752 * URI.</p>
1753 * <p>For example if the parser supports a property
1754 * <code>http://apache.org/xml/properties/schema/external-schemaLocation</code>
1755 * then this can be set using the value of the Configuration property:
1756 * <code>http://saxon.sf.net/feature/parserProperty?uri=http%3A//apache.org/xml/properties/schema/external-schemaLocation</code>
1757 * to the required value.</p>
1758 *
1759 **/
1760
1761 public final static Feature<Boolean> XML_PARSER_PROPERTY = new Feature<Boolean>(
1762 "http://saxon.sf.net/feature/parserProperty?uri=", 97, HE, Boolean.class, false);
1763
1764 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1765
1766
1767 /**
1768 * <p>Determines whether XQuery Update syntax is accepted.</p>
1769 * <p>If true, update syntax is accepted, if false, it is not accepted. Setting the value to
1770 * true does not mean that the query has to use update syntax, only that it may do so.</p>
1771 * <p>From Saxon 9.6, XQuery Update syntax and XQuery 3.0 syntax can be mixed, although
1772 * this combination is not defined by any W3C specification at the time of writing.</p>
1773 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1774 * the <code>Configuration</code> level, it acts as a default.</p>
1775 * <p>On the command line, this option is combined with the option "discard" which
1776 * indicates that updates are allowed, but the updates are not written back to
1777 * filestore. This does not correspond to any option in the Java API, where writing an
1778 * updated document back to filestore only happens if explicitly requested.</p>
1779 *
1780 **/
1781
1782 public final static Feature<Boolean> XQUERY_ALLOW_UPDATE = new Feature<Boolean>(
1783 "http://saxon.sf.net/feature/xqueryAllowUpdate", 98, EE, Boolean.class, false);
1784
1785 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1786
1787
1788 /**
1789 * <p>This option defines the default value of the construction mode in the XQuery static
1790 * context (overridable in the query prolog).</p>
1791 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1792 * the <code>Configuration</code> level, it acts as a default.</p>
1793 *
1794 **/
1795
1796 public final static Feature<String> XQUERY_CONSTRUCTION_MODE = new Feature<String>(
1797 "http://saxon.sf.net/feature/xqueryConstructionMode", 99, HE, String.class, null);
1798
1799 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1800
1801
1802 /**
1803 * <p>This property defines the default namespace for elements and types that are not
1804 * qualified by a namespace prefix.</p>
1805 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1806 * the <code>Configuration</code> level, it acts as a default.</p>
1807 *
1808 **/
1809
1810 public final static Feature<Object> XQUERY_DEFAULT_ELEMENT_NAMESPACE = new Feature<Object>(
1811 "http://saxon.sf.net/feature/xqueryDefaultElementNamespace", 100, HE, Object.class, null);
1812
1813 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1814
1815
1816 /**
1817 * <p>This property defines the default namespace for function names that are not qualified
1818 * by a namespace prefix.</p>
1819 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1820 * the <code>Configuration</code> level, it acts as a default.</p>
1821 *
1822 **/
1823
1824 public final static Feature<Object> XQUERY_DEFAULT_FUNCTION_NAMESPACE = new Feature<Object>(
1825 "http://saxon.sf.net/feature/xqueryDefaultFunctionNamespace", 101, HE, Object.class, null);
1826
1827 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1828
1829
1830 /**
1831 * <p>This property defines how the empty sequence is handled in XQuery sorting (the "order
1832 * by" clause). If true, <code>()</code> comes at the start of the sorted sequence; if
1833 * false, it comes last.</p>
1834 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1835 * the <code>Configuration</code> level, it acts as a default.</p>
1836 *
1837 **/
1838
1839 public final static Feature<Boolean> XQUERY_EMPTY_LEAST = new Feature<Boolean>(
1840 "http://saxon.sf.net/feature/xqueryEmptyLeast", 102, HE, Boolean.class, false);
1841
1842 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1843
1844
1845 /**
1846 * <p>This property defines the default value of the <code>inherit-namespaces</code>
1847 * property in the XQuery static context.</p>
1848 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1849 * the <code>Configuration</code> level, it acts as a default.</p>
1850 *
1851 **/
1852
1853 public final static Feature<Boolean> XQUERY_INHERIT_NAMESPACES = new Feature<Boolean>(
1854 "http://saxon.sf.net/feature/xqueryInheritNamespaces", 103, HE, Boolean.class, false);
1855
1856 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1857
1858
1859 /**
1860 * <p>If the value is false, then when an <code>import module</code> declaration is
1861 * encountered for a module URI that is already among the known loaded modules (or
1862 * modules in the process of being compiled), the <code>import module</code> is treated
1863 * as a reference to the existing module. If the value is true, the system first checks
1864 * whether the supplied "location hints" match the known location of the existing
1865 * module, and the existing module is used only if there is a match.</p>
1866 *
1867 **/
1868
1869 public final static Feature<Boolean> XQUERY_MULTIPLE_MODULE_IMPORTS = new Feature<Boolean>(
1870 "http://saxon.sf.net/feature/xqueryMultipleModuleImports", 104, EE, Boolean.class, false);
1871
1872 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1873
1874
1875 /**
1876 * <p>This property defines whether "boundary space" (insignificant space in direct element
1877 * constructors) should be retained or not.</p>
1878 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1879 * the <code>Configuration</code> level, it acts as a default.</p>
1880 *
1881 **/
1882
1883 public final static Feature<Boolean> XQUERY_PRESERVE_BOUNDARY_SPACE = new Feature<Boolean>(
1884 "http://saxon.sf.net/feature/xqueryPreserveBoundarySpace", 105, HE, Boolean.class, false);
1885
1886 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1887
1888
1889 /**
1890 * <p>This property defines whether unused namespace declarations are retained by XQuery
1891 * element copy operations.</p>
1892 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1893 * the <code>Configuration</code> level, it acts as a default.</p>
1894 *
1895 **/
1896
1897 public final static Feature<Boolean> XQUERY_PRESERVE_NAMESPACES = new Feature<Boolean>(
1898 "http://saxon.sf.net/feature/xqueryPreserveNamespaces", 106, HE, Boolean.class, false);
1899
1900 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1901
1902
1903 /**
1904 * <p>This property defines the default expected context item type for a query.</p>
1905 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1906 * the <code>Configuration</code> level, it acts as a default.</p>
1907 *
1908 **/
1909
1910 public final static Feature<String> XQUERY_REQUIRED_CONTEXT_ITEM_TYPE = new Feature<String>(
1911 "http://saxon.sf.net/feature/xqueryRequiredContextItemType", 107, HE, String.class, null);
1912
1913 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1914
1915
1916 /**
1917 * <p>A query will automatically be schema-aware if it contains an <code>import
1918 * schema</code> declaration. This property allows a query to be marked as
1919 * schema-aware even if it contains no <code>import schema</code> declaration. It is
1920 * necessary for a query to be compiled as schema-aware if it is to handle typed
1921 * (validated) input documents in which nodes have type annotations based on their
1922 * schema-defined type.</p>
1923 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1924 * the <code>Configuration</code> level, it acts as a default.</p>
1925 *
1926 **/
1927
1928 public final static Feature<Boolean> XQUERY_SCHEMA_AWARE = new Feature<Boolean>(
1929 "http://saxon.sf.net/feature/xquerySchemaAware", 108, EE, Boolean.class, false);
1930
1931 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1932
1933
1934 /**
1935 * <p>The specified class is instantiated to create an <code>ErrorListener</code>, and all
1936 * reports of static errors in a query will go to this <code>ErrorListener</code>.</p>
1937 * <p>This option can be set for a particular XQuery compilation. When the option is set at
1938 * the <code>Configuration</code> level, it acts as a default.</p>
1939 * <p>In the absence of this property, the global <code>ErrorListener</code> specified as
1940 * the value of the {@link net.sf.saxon.lib.Feature#ERROR_LISTENER_CLASS}
1941 * property is used.</p>
1942 *
1943 **/
1944
1945 public final static Feature<String> XQUERY_STATIC_ERROR_LISTENER_CLASS = new Feature<String>(
1946 "http://saxon.sf.net/feature/xqueryStaticErrorListenerClass", 109, HE, String.class, null);
1947
1948 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1949
1950
1951 /**
1952 * <p>This property determines the version of XQuery used by the
1953 * <code>Configuration</code>.</p>
1954 * <p>From Saxon 9.8, an XQuery 3.1 processor is always used by default. So setting this
1955 * property has no effect.</p>
1956 *
1957 *
1958 **/
1959
1960 public final static Feature<String> XQUERY_VERSION = new Feature<String>(
1961 "http://saxon.sf.net/feature/xqueryVersion", 110, HE, String.class, null);
1962
1963 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1964
1965
1966 /**
1967 * <p>This property determines the version of XML Schema used by the
1968 * <code>Configuration</code>.</p>
1969 * <p>From Saxon 9.8, the default is XSD 1.1. If XSD 1.0 is
1970 * selected, XSD 1.1 features will be rejected, with the exception of the version
1971 * control attributes that allow sections of the schema to be marked as requiring XSD
1972 * 1.0 or XSD 1.1.</p>
1973 *
1974 **/
1975
1976 public final static Feature<String> XSD_VERSION = new Feature<String>(
1977 "http://saxon.sf.net/feature/xsd-version", 111, EE, String.class, null);
1978
1979 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
1980
1981
1982 /**
1983 * <p>This property indicates whether assertions (XSLT 3.0 xsl:assert instructions) are
1984 * enabled or disabled. They are disabled by default. Setting this property on causes
1985 * assertions to be enabled at compile time for all XSLT packages compiled using the
1986 * default configuration options.</p>
1987 * <p>This option can be set for a particular XSLT compilation. When the option is set at
1988 * the <code>Configuration</code> level (or on a <code>TransformerFactory</code>), it
1989 * acts as a default.</p>
1990 * <p>If assertions have been enabled at compile time for a particular package, they can
1991 * still be disabled at run-time (for all packages) by setting an option on the
1992 * <code>Xslt30Transformer</code>. But if assertions were disabled at compile time,
1993 * enabling them at run-time has no effect.</p>
1994 *
1995 **/
1996
1997 public final static Feature<Boolean> XSLT_ENABLE_ASSERTIONS = new Feature<Boolean>(
1998 "http://saxon.sf.net/feature/enableAssertions", 112, PE, Boolean.class, false);
1999
2000 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2001
2002
2003 /**
2004 * <p>This property indicates the name of a mode within a stylesheet in which execution
2005 * (using template rules) should begin.</p>
2006 * <p>This option can be set for a particular XSLT transformation. When the option is set
2007 * at the <code>Configuration</code> (or on a <code>TransformerFactory</code>), it acts
2008 * as a default.</p>
2009 *
2010 **/
2011
2012 public final static Feature<String> XSLT_INITIAL_MODE = new Feature<String>(
2013 "http://saxon.sf.net/feature/initialMode", 113, HE, String.class, null);
2014
2015 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2016
2017
2018 /**
2019 * <p>This property indicates the name of a named template within a stylesheet where
2020 * execution should begin.</p>
2021 * <p>This option can be set for a particular XSLT transformation. When the option is set
2022 * at the <code>Configuration</code> level (or on a <code>TransformerFactory</code>),
2023 * it acts as a default.</p>
2024 *
2025 **/
2026
2027 public final static Feature<String> XSLT_INITIAL_TEMPLATE = new Feature<String>(
2028 "http://saxon.sf.net/feature/initialTemplate", 114, HE, String.class, null);
2029
2030 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2031
2032
2033 /**
2034 * <p>This property indicates whether stylesheets should be compiled with the ability to
2035 * handle schema-typed input documents. By default a stylesheet is compiled to handle
2036 * such input if it contains an <code>xsl:import-schema</code> instruction, and not
2037 * otherwise. It is necessary for a stylesheet to be compiled as schema-aware if it is
2038 * to handle typed (validated) input documents in which nodes have type annotations
2039 * based on their schema-defined type.</p>
2040 * <p>This option can be set for a particular XSLT compilation. When the option is set at
2041 * the <code>Configuration</code> level (or on a <code>TransformerFactory</code>), it
2042 * acts as a default.</p>
2043 *
2044 **/
2045
2046 public final static Feature<Boolean> XSLT_SCHEMA_AWARE = new Feature<Boolean>(
2047 "http://saxon.sf.net/feature/xsltSchemaAware", 115, EE, Boolean.class, false);
2048
2049 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2050
2051
2052 /**
2053 * <p>The specified class is instantiated to create an <code>ErrorListener</code>, and all
2054 * reports of static errors in a stylesheet will go to this
2055 * <code>ErrorListener</code>.</p>
2056 * <p>This option can be set for a particular XSLT compilation. When the option is set at
2057 * the <code>Configuration</code> level (or on a <code>TransformerFactory</code>), it
2058 * acts as a default.</p>
2059 * <p>In the absence of this property, the global <code>ErrorListener</code> specified as
2060 * the value of the {@link net.sf.saxon.lib.Feature#ERROR_LISTENER_CLASS}
2061 * property is used.</p>
2062 *
2063 **/
2064
2065 public final static Feature<String> XSLT_STATIC_ERROR_LISTENER_CLASS = new Feature<String>(
2066 "http://saxon.sf.net/feature/stylesheetErrorListener", 116, HE, String.class, null);
2067
2068 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2069
2070
2071 /**
2072 * <p>This property defines a <code>URIResolver</code> used when dereferencing the URIs
2073 * that appear in the <code>href</code> attributes of the <code>xsl:include</code> and
2074 * <code>xsl:import</code> declarations. Note that this defaults to the setting of
2075 * the global <code>URI_RESOLVER</code> property.</p>
2076 * <p>This option can be set for a particular XSLT compilation. When the option is set at
2077 * the <code>Configuration</code> level (or on a <code>TransformerFactory</code>), it
2078 * acts as a default.</p>
2079 * <p>In the absence of this property, the global <code>URIResolver</code> specified as the
2080 * value of the {@link net.sf.saxon.lib.Feature#URI_RESOLVER_CLASS} property
2081 * is used.</p>
2082 *
2083 **/
2084
2085 public final static Feature<String> XSLT_STATIC_URI_RESOLVER_CLASS = new Feature<String>(
2086 "http://saxon.sf.net/feature/stylesheetURIResolver", 117, HE, String.class, null);
2087
2088 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2089
2090
2091 /**
2092 * <p>This property determines the version of XSLT to be supported by default.</p>
2093 * <p>From Saxon 9.8, an XSLT 3.0 processor is always used by default. So setting this
2094 * property has no effect.</p>
2095 *
2096 *
2097 **/
2098
2099 public final static Feature<String> XSLT_VERSION = new Feature<String>(
2100 "http://saxon.sf.net/feature/xsltVersion", 118, HE, String.class, null);
2101
2102 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2103
2104
2105 /**
2106 * <p>This property sets a limit on the amount of backtracking performed during regular expression evaluation.</p>
2107 * <p>The default is 10000000 (ten million) which typically represents an evaluation time of about ten seconds.
2108 * After this time, evaluation of the regular expression will fail rather than making further attempts to find a
2109 * match. If this limit is reached, it often suggests that there might be a better way of writing the regular expression.
2110 * The value can be set to -1 (minus one) to mean "unlimited".</p>
2111 * <p>Excessive backtracking is usually caused by nested loops in the regular expression, combined with processing
2112 * of long input strings. Try to ensure that when nested loops are used, there is an unambiguous condition that causes
2113 * the inner loop to terminate. For example <code>(/[^/]*)+</code> is fine (it matches a sequence of path segments separated
2114 * by <code>/</code> characters), because the presence of <code>/</code> forces the inner loop to terminate. By contrast,
2115 * <code>(/.*)+</code> matches the same input, but in many different ways, which could lead to excessive backtracking
2116 * to no useful purpose.</p>
2117 *
2118 **/
2119
2120 public final static Feature<Integer> REGEX_BACKTRACKING_LIMIT = new Feature<Integer>(
2121 "http://saxon.sf.net/feature/regexBacktrackingLimit", 119, HE, Integer.class, null);
2122
2123 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2124
2125
2126 /**
2127 * <p>The XSD 1.1 specification states that XPath version 2.0 is used for expressions appearing in assertions and type
2128 * alternatives. This option allows XPath 3.0 or 3.1 to be used instead.</p>
2129 * <p>The recognized values are the integers 20, 30, and 31 representing versions 2.0, 3.0, and 3.1 respectively.</p>
2130 *
2131 **/
2132
2133 public final static Feature<Integer> XPATH_VERSION_FOR_XSD = new Feature<Integer>(
2134 "http://saxon.sf.net/feature/xpathVersionForXsd", 120, EE, Integer.class, null);
2135
2136 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2137
2138
2139 /**
2140 * <p>The XSLT 3.0 specification states that processors are required to support XPath 3.0 expressions within stylesheets, together
2141 * with some extensions (maps) selected from the XPath 3.1 specification. Support for the full syntax of XPath 3.1 is
2142 * optional, but it is the default in Saxon. This option allows a different XPath language level to be selected.</p>
2143 * <p>The integer values 20, 30, and 31 denote XPath 2.0, 3.0, and 3.1 respectively, while the value 305 denotes XPath 3.0
2144 * with the extensions defined in the XSLT 3.0 specification.</p>
2145 *
2146 **/
2147
2148 public final static Feature<Integer> XPATH_VERSION_FOR_XSLT = new Feature<Integer>(
2149 "http://saxon.sf.net/feature/xpathVersionForXslt", 121, HE, Integer.class, null);
2150
2151 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2152
2153
2154 /**
2155 * <p>Saxon-EE performs inlining of user-defined functions that are sufficiently simple: they must not be recursive,
2156 * and they must be below a certain size. This option defines the size.</p>
2157 * <p>The value is (roughly) the number of nodes in the expression tree representing the function body. This
2158 * includes both explicit subexpressions, and subexpressions added by Saxon itself to perform implicit
2159 * operations such as type checking or conversion of function arguments. The default value is 100.</p>
2160 *
2161 **/
2162
2163 public final static Feature<Integer> THRESHOLD_FOR_FUNCTION_INLINING = new Feature<Integer>(
2164 "http://saxon.sf.net/feature/thresholdForFunctionInlining", 122, EE, Integer.class, null);
2165
2166 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2167
2168
2169 /**
2170 * <p>Saxon-EE generates bytecode to give faster execution of frequently-evaluated subexpressions.
2171 * Bytecode is generated when a candidate expression has been evaluated a certain number of
2172 * times, controlled by this parameter.
2173 * </p>
2174 * <p>Setting this parameter to 0 (or any negative value) has the effect of disabling bytecode
2175 * generation completely. Setting the parameter to a positive value has the effect of enabling
2176 * bytecode generation if it is not already enabled. Setting the value to 1 (one) causes bytecode
2177 * to be generated for candidate expressions the first time it is executed.</p>
2178 *
2179 **/
2180
2181 public final static Feature<Integer> THRESHOLD_FOR_HOTSPOT_BYTE_CODE = new Feature<Integer>(
2182 "http://saxon.sf.net/feature/thresholdForHotspotByteCode", 123, EE, Integer.class, null);
2183
2184 // AUTO-GENERATED FROM FeatureKeys.xml - DO NOT EDIT THIS FILE
2185
2186
2187 }
2188