DTCP Schema Guide
This guide provides a short description of each element and attribute defined in the XML schema for the DATACOMPARATOR Pipeline (DTCP). A fuller description of DTCP, along with an example and an explanation of the main concepts can be found in the DTCP User Guide.
Element Index
characterByCharacterEnabled 41
class 56
description 29
feature 23
file 57
filter 50
finalPoint 28
http 58
inputPoint 26
isEnabled 31
location 52
locations 34
orphanedWordDetectionEnabled 46
parameter 59
property 22
resource 60
subtree 55
subtrees 49
Element Detail
Elements are listed in document-tree order, top-level elements first, then alphabetically:
Element: dataComparator 1
The root element for defining the overrides to a DataComparator whose defaults are as described in the API documentation.
A Data Comparator instance with default settings is created if no child elements are present.
Contained by
/
Contains
Attribute | Type | Description |
---|---|---|
id | anyNameType | A unique identifier for this pipeline configuration - listed as 'configuration id' in the command-line description. |
version | string | The DTCP specification version this conforms to - fixed at '1.0' |
description | string | Short description of this DTCP configuration. |
Element | Description | |
advancedConfig | Configuration options providing low-level control of the comparison, more general configuration options are in 'standardConfig' | |
extensionPoints | Declare the extension points and contained filters to be inserted within the DataComparator pipeline | |
fullDescription | Designed to provide meaningful description and basic help information to the user | |
pipelineParameters | Container for all pipeline parameters | |
standardConfig | Genaral configuration options for the DataComparator - see 'advancedConfig' for further options |
Element: advancedConfig 2
Configuration options providing low-level control of the comparison, more general configuration options are in 'standardConfig'
Contained by
Contains
Element | Description | |
---|---|---|
outputProperties | Set Serializer property settings for the built in Saxon Serializer | |
parserFeatures | Set features on the underlying SAX parser used in the pipeline | |
parserProperties | Set properties on the underlying SAX parser used in the pipeline | |
transformerConfigurationProperties | Set configuration option on the Saxon XSLT transformers used in the pipeline |
Element: extensionPoints 3
Declare the extension points and contained filters to be inserted within the DataComparator pipeline.
In EBNF the required sequence S of child elements is:
- S := 'inputPreFlatteningPoint'? IP 'outputExtensionPoints'?
- IP := 'inputExtensionPoints'? | ( 'inputAExtensionPoints'? 'inputBExtensionPoints'? )
Contained by
Contains
Element | Description | |
---|---|---|
inputExtensionPoints | Extension points for modifying A and B input filters | |
outputExtensionPoints | Extension points for modifying output filter chains |
Element: fullDescription 4
Designed to provide meaningful description and basic help information to the user.
It can contain PCDATA content. It should include a description of the Data Comparator configuration defined by the DTCP. How this information is presented to users is a tool-dependent operation, for example a GUI-based tool may provide a pop-up window and show HTML formatted content.
Contained by
Contains
Element | Description | |
---|---|---|
[any] | Any element permitted [mixed content] |
Element: pipelineParameters 5
Container for all pipeline parameters.
Pipeline parameters have global scope and are referenced using the 'paremeterRef' attribute. Pipeline parameters have a default value that can be overridden through the API. The maximum number of child elements is not restricted.
Contained by
Contains
Element | Description | |
---|---|---|
booleanParameter | Declare a boolean parameter that may be referenced by 'parameterRef' attributes or as $variables from within XPath expressions | |
stringParameter | Declare a string parameter that may be referenced by 'parameterRef' attributes or as $variables from within XPath expressions |
Element: standardConfig 6
Genaral configuration options for the DataComparator - see 'advancedConfig' for further options.
Contained by
Contains
Element | Description | |
---|---|---|
attributeSplittingConfig | Specifies configuration options for attribute splitting | |
comparisonReport | Specifies whether and where to generate comparison report which contains comparison analysis and recommendations to improve comparison result | |
ignoreChangesConfig | Specifies configuration options for Ignore Changes processing | |
moveDetectionConfig | Specifies configuration options for moves | |
namespaceConfiguration | Defines a set of prefix uri pairs for namespaces that can be used within XPath expressions provided to certain configurations such as ignoreChangesConfig or subtreeProcessingMode | |
resultReadabilityOptions | Sets options to change the granularity and ordering of changes in the result in order to improve readability | |
subtreeProcessingMode | Specifies configuration options for subtree processing |
Element: outputProperties 7
Set Serializer property settings for the built in Saxon Serializer.
Contained by
Contains
Element | Description | |
---|---|---|
property | Sets the string value of a named property |
Element: parserFeatures 8
Set features on the underlying SAX parser used in the pipeline.
For more detail, see setParserFeature in the API documentation.
Contained by
Contains
Element | Description | |
---|---|---|
feature | Sets the boolean value of a named feature |
Element: parserProperties 9
Set properties on the underlying SAX parser used in the pipeline.
For more detail, see setParserProperty in the API documentation.
Contained by
Contains
Element | Description | |
---|---|---|
property | Sets the string value of a named property |
Element: transformerConfigurationProperties 10
Set configuration option on the Saxon XSLT transformers used in the pipeline.
The maximum number of child elements is not restricted.
Contained by
Contains
Element | Description | |
---|---|---|
booleanProperty | A named boolean property | |
stringProperty | A named string property |
Element: inputExtensionPoints 11
Extension points for modifying A and B input filters
Contained by
Contains
Element | Description | |
---|---|---|
inputPoint | Extension point for modifying A and B input filters, after element flattening | |
inputPreFlatteningPoint | Extension point for modifying A and B input filters, before element flattening |
Element: outputExtensionPoints 12
Extension points for modifying output filter chains.
Contained by
Contains
Element | Description | |
---|---|---|
finalPoint | Final filter extension point in the DataComparator output pipeline |
Element: booleanParameter 13
Declare a boolean parameter that may be referenced by 'parameterRef' attributes or as $variables from within XPath expressions.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | NCName | The boolean parameter name |
defaultValue | boolean | The default boolean value - may be overriden externally |
Element | Description | |
description | Short summary of the purpose of the parameter |
Element: stringParameter 14
Declare a string parameter that may be referenced by 'parameterRef' attributes or as $variables from within XPath expressions.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | NCName | The string parameter name |
defaultValue | string | The default string value - may be overriden externally |
Element | Description | |
description | Short summary of the purpose of the parameter |
Element: attributeSplittingConfig 15
Specifies configuration options for attribute splitting.
These options can be specified on a comparator to configure its behaviour. Attribute Splitting is off by default.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
defaultMode | [enum] |
Permitted values / descriptions:
|
Element | Description | |
attributeLocations | This class is used to represent locations for attributes which will be processed and split | |
isEnabled | Sets whether the comparator should enable the feature or not |
Element: comparisonReport 16
Specifies whether and where to generate comparison report which contains comparison analysis and recommendations to improve comparison result.
Contained by
Contains
Element | Description | |
---|---|---|
generateReport | Specifies whether to generate comparison report | |
reportDirectory | Specifies where to generate comparison report |
Element: ignoreChangesConfig 17
Specifies configuration options for Ignore Changes processing.
These options can be specified on a comparator to configure its behaviour.
Contained by
Contains
Element | Description | |
---|---|---|
locations | This class is used to represent locations for elements and attributes on which the changes will be ignored |
Element: moveDetectionConfig 18
Specifies configuration options for moves.
These configuration options can be specified on a comparator to configure its behaviour.
Contained by
Contains
Element | Description | |
---|---|---|
isEnabled | Sets whether the comparator should enable the feature or not | |
moveCandidates | This class is used to represent move candidates | |
moveDetectionType | Sets the type of move detection, determining how move processing should be executed | |
showMoveSource | Sets whether the comparator should show move source or not |
Element: namespaceConfiguration 19
Defines a set of prefix uri pairs for namespaces that can be used within XPath expressions provided to certain configurations such as ignoreChangesConfig or subtreeProcessingMode.
Contained by
Contains
Element | Description | |
---|---|---|
defaultNamespace | This element is used to define the default namespace | |
userNamespaces | This element is used to define user namespaces |
Element: resultReadabilityOptions 20
Sets options to change the granularity and ordering of changes in the result in order to improve readability.
Contained by
Contains
Element | Description | |
---|---|---|
changeGatheringEnabled | Sets whether to change the order of consecutive changed items to improve readability | |
characterByCharacterEnabled | Sets whether to enable character by character comparison | |
elementSplittingEnabled | Sets whether modified elements containing text should be split when the amount of unchanged text falls below a given percentage | |
elementSplittingThreshold | Sets the percentage of unchanged text present in a modified element below which the element will be split | |
mixedContentDetectionScope | Set the scope to use for determining if each element in the document is of a mixed-content type | |
modifiedWhitespaceBehaviour | Set the ModifiedWhitespaceBehaviour to use for changes to whitespace | |
orphanedWordDetectionEnabled | States whether or not orphaned word detection is enabled | |
orphanedWordLengthLimit | Sets the maximum number of words to consider for orphaned word detection | |
orphanedWordMaxPercentage | Sets the maximum proportion of the total change size that orphaned words can take while still being considered orphans |
Element: subtreeProcessingMode 21
Specifies configuration options for subtree processing.
These options can be specified on a comparator to configure its behaviour.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
defaultMode | [enum] |
Permitted values / descriptions:
|
Element | Description | |
subtrees | This class is used to represent subtrees |
Element: property 22
Sets the string value of a named property
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The parameter name |
literalValue | string | The literal string value |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: feature 23
Sets the boolean value of a named feature.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | The literal boolean value for the feature setting. |
name | anyURI | The fully qualitifed feature name. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: booleanProperty 24
A named boolean property
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The parameter name |
literalValue | boolean | The literal boolean value |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: stringProperty 25
A named string property
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The parameter name |
literalValue | string | The literal string value |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: inputPoint 26
Extension point for modifying A and B input filters, after element flattening.
Contained by
Contains
Element | Description | |
---|---|---|
filter | An XSLT or Java XML processing filter to be loaded into the comparator pipeline |
Element: inputPreFlatteningPoint 27
Extension point for modifying A and B input filters, before element flattening.
Contained by
Contains
Element | Description | |
---|---|---|
filter | An XSLT or Java XML processing filter to be loaded into the comparator pipeline |
Element: finalPoint 28
Final filter extension point in the DataComparator output pipeline.
Contained by
Contains
Element | Description | |
---|---|---|
filter | An XSLT or Java XML processing filter to be loaded into the comparator pipeline |
Element: description 29
Short summary of the purpose of the parameter.
Contained by
Contains
Type: xs:string
Element: attributeLocations 30
This class is used to represent locations for attributes which will be processed and split.
Contained by
Contains
Element | Description | |
---|---|---|
attributeLocation | This is used to represent an attribute location XPath, separator, regular expression or output separator |
Element: isEnabled 31
Sets whether the comparator should enable the feature or not.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set 'true' to enable the feature. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: generateReport 32
Specifies whether to generate comparison report.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set 'true' to generate comparison report as an additional output. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: reportDirectory 33
Specifies where to generate comparison report.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | string | The location of the directory to write the comparison report to. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: locations 34
This class is used to represent locations for elements and attributes on which the changes will be ignored.
Contained by
Contains
Element | Description | |
---|---|---|
location | This is used to represent location XPath and result rule |
Element: moveCandidates 35
This class is used to represent move candidates.
Contained by
Contains
Element | Description | |
---|---|---|
moveCandidate | This is used to represent move candidate element XPath and class XPath pairs |
Element: moveDetectionType 36
Sets the type of move detection, determining how move processing should be executed.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | [enum] |
Permitted values / descriptions:
|
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: showMoveSource 37
Sets whether the comparator should show move source or not.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set 'true' to show move source. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: defaultNamespace 38
This element is used to define the default namespace.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
uri | Sets the uri of the default namespace. |
Element: userNamespaces 39
This element is used to define user namespaces.
Contained by
Contains
Element | Description | |
---|---|---|
userNamespace | This element is used to define user namespace |
Element: changeGatheringEnabled 40
Sets whether to change the order of consecutive changed items to improve readability.
If the result contains a sequence of elements whose deltaxml:deltaV2 attribute values are mixed up in a sequence of As and Bs, enabling this feature will cause them to be reordered so that they are not mixed.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set true to enabled change gathering |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: characterByCharacterEnabled 41
Sets whether to enable character by character comparison
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set true to enable character by character comparison |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: elementSplittingEnabled 42
Sets whether modified elements containing text should be split when the amount of unchanged text falls below a given percentage.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Set true to enable element splitting |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: elementSplittingThreshold 43
Sets the percentage of unchanged text present in a modified element below which the element will be split.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | Percentage | The threshold percentage as in integer (1 to 100) |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: mixedContentDetectionScope 44
Set the scope to use for determining if each element in the document is of a mixed-content type.
The mixed content type affects whitespace processing. If DTD or XML Schema validation is used this setting has no effect.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | [enum] |
Permitted values / descriptions:
|
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: modifiedWhitespaceBehaviour 45
Set the ModifiedWhitespaceBehaviour to use for changes to whitespace.
Here, both documents must have some whitespace at a given point in order for there to be a change in whitespace. This will then be processed in accordance with the specified behaviour. Whitespace insertions and deletions are not affected by the modified whitespace behaviour.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | [enum] |
Permitted values / descriptions:
|
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: orphanedWordDetectionEnabled 46
States whether or not orphaned word detection is enabled.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | boolean | Enable/disable. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: orphanedWordLengthLimit 47
Sets the maximum number of words to consider for orphaned word detection.
Sequences of words longer than the specified length will never be detected as orphaned words, regardless of the amount of changed words around them.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | unsignedLong | |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: orphanedWordMaxPercentage 48
Sets the maximum proportion of the total change size that orphaned words can take while still being considered orphans.
If the percentage value for a possibly orphaned section is less than or equal to this value, then it is classified as orphaned (unless there are more words than the length limit allows). The percentage value for a possibly orphaned section is calculated as follows:
Contained by
Contains
Attribute | Type | Description |
---|---|---|
literalValue | Percentage | An integer value (1 to 100) that is the max percentage of the total change size were a change is considered to be orphaned. |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: subtrees 49
This class is used to represent subtrees.
Contained by
Contains
Element | Description | |
---|---|---|
subtree | This is used to represent subtree XPath and type |
Element: filter 50
An XSLT or Java XML processing filter to be loaded into the comparator pipeline.
There must be one 'class', 'http', 'resource' or 'file' child
element for a filter element as this defines the filter type and how it is to be loaded.
Attributes on the filter element may be used to control whether the filter is enabled or
disabled.
Child 'parameter' elements may also be added so that parameter values are passed
on to matching parameters in the XML filter. Any number of filter elements may be added to
an extension point, filters are processed in the pipeline in order of occurrence.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
if | NCName | Enable filter when named boolean pipelineParameter is true. |
unless | NCName | Disable filter when named boolean pipelineParameter is true. |
when | string | Enable filter when XPath expression evaluates true. |
Element | Description | |
class | Load a Java class implementing the SAX XMLFilter interface from the ClassPath | |
file | Load an XSLT filter from the file system | |
http | Load XSLT filter from an identified HTTP resource | |
parameter | A named parameter to supply to a filter - any XPath-item type (including a sequence) can be supplied to an XSLT filter using the xpath attribute | |
resource | Load an XSLT filter as a resource in a jar file |
Element: attributeLocation 51
This is used to represent an attribute location XPath, separator, regular expression or output separator.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
enabled | boolean | Set if attribute splitting is enabled or disabled for the attribute at this location |
attributeXpath | Set the attribute XPath | |
mode | [enum] |
Permitted values / descriptions:
|
separator | string | Sets the separator used to split the attribute text. |
regex | string | Sets the regular expression used to split the attribute text. |
outputTokenSeparator | string | Sets the output separator used to separate tokens in the output. |
Element: location 52
This is used to represent location XPath and result rule.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
ignoreXpath | Sets the node XPath. | |
resultRule | [enum] |
Permitted values / descriptions:
|
Element: moveCandidate 53
This is used to represent move candidate element XPath and class XPath pairs.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
elemXpath | Sets the element Xpath. | |
classXpath | Sets the class Xpath. |
Element: userNamespace 54
This element is used to define user namespace.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
prefix | Sets the prefix of the user namespace. | |
uri | Sets the uri of the user namespace. |
Element: subtree 55
This is used to represent subtree XPath and type.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
elemXpath | Sets the element XPath. | |
mode | [enum] |
Permitted values / descriptions:
|
ordered | boolean | Sets the boolean where true represents ordered alignment, and false represents unordered alignment. |
Element | Description | |
childAlignment | This class represents child alignment specifiers for the subtree configuration |
Element: class 56
Load a Java class implementing the SAX XMLFilter interface from the ClassPath.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The fully qualified name of the class. |
Element: file 57
Load an XSLT filter from the file system.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
path | string | The path of the filter to be loaded, relative paths are resolved according to the setting of the 'relBase' attribute. |
relBase | [enum] | The relBase attribute is used to specify how the relative path to a file is resolved. Permitted values / descriptions:
|
Element: http 58
Load XSLT filter from an identified HTTP resource.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
url | anyURI | The URL of the HTTP resource. |
Element: parameter 59
A named parameter to supply to a filter - any XPath-item type (including a sequence) can be supplied to an XSLT filter using the xpath attribute.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The parameter name |
literalValue | string | The literal string value |
parameterRef | string | Name of referenced pipelineParameter |
xpath | XPath expression returning the required type |
Element: resource 60
Load an XSLT filter as a resource in a jar file.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
name | anyNameType | The resource name, for example, '/xsl/resource.xsl' |
Element: childAlignment 61
This class represents child alignment specifiers for the subtree configuration.
Contained by
Contains
Attribute | Type | Description |
---|---|---|
childXpath | Sets the child xpath | |
keyXpath | Sets the key xpath specifying the key for the associated child element |
This documentation was auto-generated from the XML Schema XSD.