001: package net.sf.saxon;
002:
003: /**
004: * FeatureKeys defines a set of constants, names of Saxon configuration
005: * options which can be supplied to the Saxon implementations of the JAXP
006: * interfaces TransformerFactory, SchemaFactory, Validator, and ValidationHandler.
007: *
008: * @author Michael H. Kay
009: */
010:
011: public class FeatureKeys {
012:
013: /**
014: * ALLOW_EXTERNAL_FUNCTIONS must be a Boolean; it determines whether calls to external functions are allowed
015: */
016:
017: public static final String ALLOW_EXTERNAL_FUNCTIONS = "http://saxon.sf.net/feature/allow-external-functions";
018:
019: /**
020: * COLLATION_URI_RESOLVER must be a {@link net.sf.saxon.sort.CollationURIResolver}.
021: * This resolver will be used to resolve collation URIs used in stylesheets compiled or executed under the
022: * control of this TransformerFactory
023: */
024:
025: public static final String COLLATION_URI_RESOLVER = "http://saxon.sf.net/feature/collation-uri-resolver";
026:
027: /**
028: * COLLECTION_URI_RESOLVER must be a {@link net.sf.saxon.CollectionURIResolver}.
029: * This resolver will be used to resolve collection URIs used in calls of the collection() function
030: */
031:
032: public static final String COLLECTION_URI_RESOLVER = "http://saxon.sf.net/feature/collection-uri-resolver";
033:
034: /**
035: * DTD_VALIDATION must be a Boolean. This determines whether source documents should be
036: * parsed with DTD-validation enabled.
037: */
038:
039: public static final String DTD_VALIDATION = "http://saxon.sf.net/feature/validation";
040:
041: /**
042: * LINE_NUMBERING must be a Boolean(); it determines whether line numbers are maintained for the
043: * source document
044: */
045:
046: public static final String LINE_NUMBERING = "http://saxon.sf.net/feature/linenumbering";
047:
048: /**
049: * MESSAGE_EMITTER_CLASS must be the class name of an Emitter
050: */
051:
052: public static final String MESSAGE_EMITTER_CLASS = "http://saxon.sf.net/feature/messageEmitterClass";
053:
054: /**
055: * NAME_POOL must be an instance of net.sf.saxon.om.NamePool
056: */
057:
058: public static final String NAME_POOL = "http://saxon.sf.net/feature/namePool";
059:
060: /**
061: * OUTPUT_URI_RESOLVER must be an instance of net.sf.saxon.OutputURIResolver
062: */
063:
064: public static final String OUTPUT_URI_RESOLVER = "http://saxon.sf.net/feature/outputURIResolver";
065:
066: /**
067: * RECOGNIZE_URI_QUERY_PARAMETERS must be a Boolean; it determines whether query parameters (things after "?")
068: * in a URI passed to the document() or doc() function are specially recognized by the system default URIResolver.
069: * Allowed parameters include, for example validation=strict to perform schema validation, and strip-space=yes
070: * to perform stripping of all whitespace-only text nodes.
071: */
072:
073: public static final String RECOGNIZE_URI_QUERY_PARAMETERS = "http://saxon.sf.net/feature/recognize-uri-query-parameters";
074:
075: /**
076: * RECOVERY_POLICY must be an Integer: Controller.RECOVER_SILENTLY,
077: * Controller.RECOVER_WITH_WARNINGS, or Controller.DO_NOT_RECOVER
078: */
079:
080: public static final String RECOVERY_POLICY = "http://saxon.sf.net/feature/recoveryPolicy";
081:
082: /**
083: * SCHEMA_VALIDATION must be a Boolean. This determines whether source documents should be
084: * parsed with schema-validation enabled.
085: */
086:
087: public static final String SCHEMA_VALIDATION = "http://saxon.sf.net/feature/schema-validation";
088:
089: /**
090: * SOURCE_PARSER_CLASS must be the full class name of an XMLReader. This identifies the parser
091: * used for source documents.
092: */
093:
094: public static final String SOURCE_PARSER_CLASS = "http://saxon.sf.net/feature/sourceParserClass";
095:
096: /**
097: * STRIP_WHITESPACE must be a string set to one of the values "all", "none", or "ignorable".
098: * This determines what whitespace is stripped during tree construction: "all" removes all
099: * whitespace-only text nodes; "ignorable" removes whitespace text nodes in element-only content
100: * (as identified by a DTD or Schema), and "none" preserves all whitespace. This whitespace stripping
101: * is additional to any stripping caused by the xsl:strip-space declaration in a stylesheet.
102: */
103:
104: public static final String STRIP_WHITESPACE = "http://saxon.sf.net/feature/strip-whitespace";
105:
106: /**
107: * STYLE_PARSER_CLASS must be an XMLReader. This identifies the parser used for stylesheets and
108: * schema modules.
109: */
110:
111: public static final String STYLE_PARSER_CLASS = "http://saxon.sf.net/feature/styleParserClass";
112:
113: /**
114: * TIMING must be an Boolean; it determines whether basic timing information is output to System.err
115: */
116:
117: public static final String TIMING = "http://saxon.sf.net/feature/timing";
118:
119: /**
120: * TRACE_EXTERNAL_FUNCTIONS must be a Boolean; it determines whether the loading and binding of extension
121: * functions is traced
122: */
123:
124: public static final String TRACE_EXTERNAL_FUNCTIONS = "http://saxon.sf.net/feature/trace-external-functions";
125:
126: /**
127: * TRACE_LISTENER must be a class that implements net.sf.saxon.trace.TraceListener
128: */
129:
130: public static final String TRACE_LISTENER = "http://saxon.sf.net/feature/traceListener";
131:
132: /**
133: * TREE_MODEL must be an Integer: Builder.STANDARD_TREE or Builder.TINY_TREE
134: */
135:
136: public static final String TREE_MODEL = "http://saxon.sf.net/feature/treeModel";
137:
138: /**
139: * VALIDATION_WARNINGS must be a Boolean. This determines whether validation errors in result
140: * documents should be treated as fatal. By default they are fatal; with this option set, they
141: * are treated as warnings.
142: */
143:
144: public static final String VALIDATION_WARNINGS = "http://saxon.sf.net/feature/validation-warnings";
145:
146: /**
147: * VERSION_WARNING must be a Boolean. This determines whether a warning should be output when
148: * running an XSLT 2.0 processor against an XSLT 1.0 stylesheet. The XSLT specification requires
149: * this to be done by default.
150: */
151:
152: public static final String VERSION_WARNING = "http://saxon.sf.net/feature/version-warning";
153:
154: /**
155: * XML_VERSION is a character string. This determines the XML version used by the Configuration: the
156: * value must be "1.0" or "1.1". For details, see {@link Configuration#setXMLVersion(int)}.
157: */
158:
159: public static final String XML_VERSION = "http://saxon.sf.bet/feature/xml-version";
160:
161: private FeatureKeys() {
162: }
163: }
164:
165: //
166: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
167: // you may not use this file except in compliance with the License. You may obtain a copy of the
168: // License at http://www.mozilla.org/MPL/
169: //
170: // Software distributed under the License is distributed on an "AS IS" basis,
171: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
172: // See the License for the specific language governing rights and limitations under the License.
173: //
174: // The Original Code is: all this file
175: //
176: // The Initial Developer of the Original Code is Michael H. Kay.
177: //
178: // Contributor(s):
179: //
|