public class SaxonOutputKeys extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_ORDER
saxon:attribute-order = list of attribute names
|
static String |
BYTE_ORDER_MARK
byte-order-mark = yes|no.
|
static String |
CHARACTER_REPRESENTATION
representation = rep1[;rep2].
|
static String |
DOUBLE_SPACE
saxon:double-space = list of element names
|
static String |
ESCAPE_URI_ATTRIBUTES
escape-uri-attributes = "yes" | "no".
|
static String |
HTML_VERSION
html-version = decimal
|
static String |
IMPLICIT_RESULT_DOCUMENT
Property used internally to identify the XSLT implicit result document
|
static String |
INCLUDE_CONTENT_TYPE
include-content-type = "yes" | "no".
|
static String |
INDENT_SPACES
saxon:indent-spaces = integer.
|
static String |
ITEM_SEPARATOR
item-separator = string
|
static String |
LINE_LENGTH
saxon:line-length = integer.
|
static String |
NEXT_IN_CHAIN
saxon:next-in-chain = URI.
|
static String |
NEXT_IN_CHAIN_BASE_URI |
static String |
NORMALIZATION_FORM
normalization-form = NFC|NFD|NFKC|NFKD|non.
|
static String |
RECOGNIZE_BINARY
recognize-binary = yes|no.
|
static String |
REQUIRE_WELL_FORMED
saxon:require-well-formed = yes|no.
|
static String |
SAXON_BASE64_BINARY_METHOD
String constant representing the saxon:base64Binary output method name
|
static String |
SAXON_HEX_BINARY_METHOD
String constant representing the saxon:hexBinary output method name
|
static String |
SAXON_PTREE_METHOD
String constant representing the saxon:ptree output method name
|
static String |
SAXON_XQUERY_METHOD
String constant representing the saxon:xquery output method name
|
static String |
STYLESHEET_VERSION
stylesheet-version.
|
static String |
SUPPLY_SOURCE_LOCATOR
supply-source-locator = yes|no.
|
static String |
SUPPRESS_INDENTATION
suppress-indentation = list of element names
|
static String |
UNDECLARE_PREFIXES
undeclare-prefixes = "yes" | "no".
|
static String |
USE_CHARACTER_MAPS
use-character-map = list-of-qnames.
|
static String |
WRAP
wrap="yes"|"no".
|
Modifier and Type | Method and Description |
---|---|
static String |
checkOutputProperty(String key,
String value,
Configuration config,
boolean allow30)
Check that a supplied output property is valid, and normalize the value (specifically in the case of boolean
values where yes|true|1 are normalized to "yes", and no|false|0 are normalized to "no").
|
static boolean |
isHtmlVersion5(Properties properties)
Examine the already-validated properties to see whether the html-version property is present
with the decimal value 5.0, or if absent, the version property is present with the value 5.0.
|
static boolean |
isXhtmlHtmlVersion5(Properties properties)
Examine the already-validated properties to see whether the html-version property is present
with the decimal value 5.; used to decide whether to produce XHTML 5.0 in the XHTML output
method.
|
static String |
parseListOfNodeNames(String value,
NamespaceResolver nsResolver,
boolean useDefaultNS,
boolean prevalidated,
String errorCode)
Process a serialization property whose value is a list of element names, for example cdata-section-elements
|
public static final String SAXON_XQUERY_METHOD
public static final String SAXON_BASE64_BINARY_METHOD
public static final String SAXON_HEX_BINARY_METHOD
public static final String SAXON_PTREE_METHOD
public static final String INDENT_SPACES
Defines the number of spaces used for indentation of output
public static final String LINE_LENGTH
Defines the desired maximum line length used when indenting output
public static final String SUPPRESS_INDENTATION
Defines elements within which no indentation will occur
public static final String HTML_VERSION
Defines the version of HTML. For the XHTML output method this allows separate specification of the XHTML version and the XML version. This is a new serialization parameter in the draft 3.0 specification.
public static final String ITEM_SEPARATOR
Relevant to XQuery, where an arbitrary sequence can be serialized; defines a separator to be inserted between successive items in the sequence.
public static final String ATTRIBUTE_ORDER
Defines an ordering for attributes in the serialized output. Any attribute present in the list will appear correctly ordered according to the list; other attributes will be ordered first by namespace, then by local name.
public static final String DOUBLE_SPACE
Defines elements that will have an extra blank line added before the start tag, in addition to normal indentation
public static final String STYLESHEET_VERSION
public static final String USE_CHARACTER_MAPS
Defines the character maps used in this output definition. The QNames are represented in Clark notation as {uri}local-name.
public static final String INCLUDE_CONTENT_TYPE
Indicates whether the META tag is to be added to HTML output
public static final String UNDECLARE_PREFIXES
Indicates XML 1.1 namespace undeclarations are to be output when required
public static final String ESCAPE_URI_ATTRIBUTES
Indicates whether HTML attributes of type URI are to be URI-escaped
public static final String CHARACTER_REPRESENTATION
Indicates the preferred way of representing non-ASCII characters in HTML and XML output. rep1 is for characters in the range 128-256, rep2 for those above 256.
public static final String NEXT_IN_CHAIN
Indicates that the output is to be piped into another XSLT stylesheet to perform another transformation. The auxiliary property NEXT_IN_CHAIN_BASE_URI records the base URI of the stylesheet element where this attribute was found.
public static final String NEXT_IN_CHAIN_BASE_URI
public static final String BYTE_ORDER_MARK
Indicates whether UTF-8/UTF-16 output is to start with a byte order mark. Values are "yes" or "no", default is "no"
public static final String NORMALIZATION_FORM
Indicates that a given Unicode normalization form (or no normalization) is required.
public static final String RECOGNIZE_BINARY
If set to "yes", and the output is being written using output method "text", Saxon will recognize two processing instructions <?hex XXXX?> and <b64 XXXX?> containing binary data encoded as a hexBinary or base64 string respectively. The corresponding strings will be decoded as characters in the encoding being used for the output file, and will be written out to the output without checking that they represent valid XML strings.
public static final String REQUIRE_WELL_FORMED
Indicates whether a user-supplied ContentHandler requires the stream of SAX events to be well-formed (that is, to have a single element node and no text nodes as children of the root). The default is "no".
public static final String SUPPLY_SOURCE_LOCATOR
If set to "yes", and the output is being sent to a SAXResult (or to a user-supplied content handler), indicates that the SAX Locator made available to the ContentHandler will contain information about the location of the context node in the source document as well as the location in the stylesheet or query.
public static final String WRAP
public static final String IMPLICIT_RESULT_DOCUMENT
public static String checkOutputProperty(String key, String value, Configuration config, boolean allow30) throws XPathException
key
- the name of the propertyvalue
- the value of the property. This may be set to null, in which case no validation takes place.
The value must be in JAXP format, that is, with lexical QNames expanded to Clark namesconfig
- the Saxon Configuration. May be null, in which case validation may be incompleteallow30
- true if serializer xslt 3.0 rules are followedXPathException
- if the property name or value is invalidpublic static String parseListOfNodeNames(String value, NamespaceResolver nsResolver, boolean useDefaultNS, boolean prevalidated, String errorCode) throws XPathException
value
- The value of the property as writtennsResolver
- The namespace resolver to use; may be null if prevalidated is set or if names are supplied
in Clark formatuseDefaultNS
- prevalidated
- true if the property has already been validatederrorCode
- The error code to return in the event of problemsXPathException
- if any error is found in the list of element names, for example, an undeclared namespace prefixpublic static boolean isXhtmlHtmlVersion5(Properties properties)
properties
- the properties to be examinedpublic static boolean isHtmlVersion5(Properties properties)
properties
- the properties to be examinedCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.