Data Format Description Language (DFDL) v1.0 Specification
OGF Proposed Recommendation GFD-P-R.174, January 31, 2011
Property Name |
Description |
---|---|
textStringJustification |
Enum Valid values ‘left’, ‘right’, ‘center’ Unparsing: 'left': Justifies to the left and adds padding chars to the string contents if the string is too short, to the length determined by the dfdl:textPadKind property. 'right': Justifies to the right and adds padding chars to the string contents if the string is too short, to the length determined by the dfdl:textPadKind property. ‘center’: Adds equal padding chars left and right of the string contents if the string is too short, to the length determined by the dfdl:textPadKind property. It adds one extra padding char on the left if needed. Parsing: 'left': Trims any padding characters from the right of the string, according to dfdl:textTrimKind property. 'right': Trims any padding characters from the left of the string, according to dfdl:textTrimKind property. ‘center’ Trims any padding characters from the left and right of the string, according to dfdl:textTrimKind property. Annotation: dfdl:element, dfdl:simpleType |
textStringPadCharacter |
DFDL String Literal The value that is used when padding or trimming string elements. The value can be a single character or a single byte.If a character, then it can be specified using a literal character or using DFDL entities. If a byte, then it must be specified using a single byte value entity otherwise it is a schema definition errorIf a pad character is specified when dfdl:lengthUnits='bytes' then the pad character must be a single-byte character. If a pad byte is specified when dfdl:lengthUnits='characters' then - the encoding must be a fixed-width encoding - padding and trimming must be applied using a sequence of N pad bytes, where N is the width of a character in the fixed-width encoding. Annotation: dfdl:element, dfdl:simpleType |
truncateSpecifiedLengthString |
Enum Valid values are 'yes', 'no' Used on unparsing only 'yes' means if the item is a string (that is, the logical type is xs:string) that is longer than the specified length, the string is truncated to this length. (See section 12.3.7 Elements of Specified Length ) No exception is raised on unparsing, unless validation (see Validating messages) is active. The position from which data is truncated is determined by the value of the dfdl:textStringJustification property. If the value of the dfdl:textStringJustification property is 'left', data is truncated from the right; if the value of the dfdl:textStringJustification property is 'right', data is truncated from the left. However if the value of the dfdl:textStringJustification property is 'center' or 'none', truncation does not occur and a processing error occurs if the string is too long. Annotation: dfdl:element, dfdl:simpleType (string simple type) |
Copyright (C) Open Grid Forum (2005-2010). All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the OGF or other organizations, except as needed for the purpose of developing Grid Recommendations in which case the procedures for copyrights defined in the OGF Document process must be followed, or as required to translate it into languages other than English.