...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <externalVariableBindings<dfdlConfig xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://example.com"> <externalVariableBindings> <bind name="ex:var1">-9</bind> <bind name="ex:var2">Foo</bind> </externalVariableBindings> </dfdlConfig> |
These would allow the external variables to be set or overridden, if defined in a DFDL schema like so:
Code Block | ||||
---|---|---|---|---|
| ||||
<dfdl:defineVariable name="var1" external="true" type="xsd:int">1</dfdl:defineVariable> <dfdl:defineVariable name="var2" external="true" type="xsd:string">Bar</dfdl:defineVariable> |
Tunable Parameters
Various tunable parameters can be modified to change various Daffodil schema compilation and data parsing properties. For example, the following sets the maxOccursBounds tunable to 1024:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?>
<dfdlConfig xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://example.com">
<tunables>
<maxOccursBounds>1024</maxOccursBounds>
</tunables>
</dfdlConfig> |
Below is the list of tunable parameters and their default values:
tunable | default |
---|---|
maxFieldContentLengthInBytes | 1024 |
maxOccursBounds | 1024 |
maxSkipLength | 1024 |
maxBinaryDecimalVirtualPoint | 200 |
minBinaryDecimalVirtualPoint | -200 |
generatedNamespacePrefixStem | tns |
readerByteBufferSize | 8192 |
maxLengthForVariableLengthDelimiterDisplay | 10 |
inputFileMemoryMapLowThreshold | 33554432 |
requireBitOrderProperty | false |
requireEncodingErrorPolicyProperty | false |
Configuration Schema
Below is the schema that defines this XML file:
...