Data Format Description Language (DFDL) v1.0 Specification
OGF Proposed Recommendation GFD-P-R.174, January 31, 2011


31. Appendix A:Escape Scheme Use Cases

31.1 Escape Character same as dfdl:escapeEscapeCharacater

EscapeKind=‘escapeCharacter’, escapeCharacter=’/’, ecsapeEscapeCharacater=’/’, separator=’;’, extraEscapeCharacter=’?’

Data

Result

…………….………………..

…………….………………..

……………/.………………..

……………//.………………..

……………/.…/……………..

……………//.…//……………..

……………//.………………..

……………////.………………..

/…………….………………..

//…………….………………..

…………….………………../

…………….………………..//

/……………/.………………..

//……………//.………………..

……………./………………../

…………….//………………..//

…………….;………………..

……………./;………………..

……………./;………………..

…………….///;………………..

;…………….………………..

/;…………….………………..

…………….?………………..

……………./?………………..

31.2 Escape Character different from dfdl:escapeEscapeCharacater

EscapeKind=‘escapeCharacter’, escapeCharacter=’/’, ecsapeEscapeCharacater=’%’, separator=’;’, extraEscapeCharacter=’?’

Data

Result

…………….………………..

…………….………………..

……………/.………………..

……………%/.………………..

……………/.…/……………..

……………%/.…%/……………..

……………//.………………..

……………%/%/.………………..

/…………….………………..

%/…………….………………..

…………….………………../

…………….………………..%/

/……………/.………………..

%/……………%/.………………..

……………./………………../

…………….%/………………..%/

…………….;………………..

……………./;………………..

……………./;………………..

…………….%//;………………..

;…………….………………..

/;…………….………………..

…………….?………………..

……………./?………………..

…………….%………………..

…………….%………………..

…………….%/………………..

…………….%%/………………..

……………./%………………..

…………….%/%………………..

EscapeKind=‘escapeCharacter’, escapeCharacter=’/’, ecsapeEscapeCharacater=’%’, separator=’sep’, extraEscapeCharacter=’?’

Data

Result

…………….sep………………..

……………./sep………………..

……………./sep………………..

…………….%//sep………………..

sep…………….………………..

/sep…………….………………..

31.3 Escape block with different start and end characters

EscapeKind=‘escapeBlock’, escapeBlockStart=’[’, escapeBlockEnd=’]’, ecsapeEscapeCharacater=’%’, separator=’;’, extraEscapeCharacter=’?’

Data

Result

…………….………………..

…………….………………..

[…………….………………..

[[…………….………………..]

]…………….………………..

]…………….………………..

……………[.………………..

……………[.………………..

……………].………………..

……………].………………..

…………….………………..]

…………….………………..]

[[…………….………………..

[[[…………….………………..]

…………….………………..]]

…………….………………..]]

…………….[[………………..

…………….[[………………..

…………….]]………………..

…………….]]………………..

[…………….………………..]

[[…………….………………..%]]

[…………….]………………..

[[…………….%]………………..]

…………….[………………..]

…………….[………………..]

[……………[.………………..]

[[……………[.………………..%]]

[…………….]………………..]

[[…………….%]………………..%]]

[[…………….………………..]

[[[…………….………………..%]]

[…………….………………..]]

[[…………….………………..%]%]]

[[…………….………………..]]

[[[…………….………………..%]%]]

…………….%………………..

…………….%………………..

…………….%%………………..

…………….%%………………..

…………….%[………………..

…………….%[………………..

…………….%]………………..

…………….%]………………..

%[…………….………………..

%[…………….………………..

…………….………………..%]

…………….………………..%]

%[…………….………………..%]

%[…………….………………..%]

[…………%….………………..]

[[…………%….………………..%]]

[…………%]….………………..]

[[…………%%]….………………..%]]

…………….;………………..

[…………….;………………..]

…………….%;………………..

[…………….%;………………..]

[…………….;………………..]

[[…………….;………………..%]]

…………….?………………..

[…………….?………………..]

31.4 Escape block with same start and end characters

EscapeKind=‘escapeBlock’, escapeBlockStart=’ '’, escapeBlockEnd=’ '’, ecsapeEscapeCharacater=’%’, separator=’;’, extraEscapeCharacter=’?’

Data

Result

…………….………………..

…………….………………..

'…………….………………..

'%'…………….………………..'

……………'.………………..

……………'.………………..

…………….………………..'

…………….………………..'

''…………….………………..

'%'%'…………….………………..'

…………….………………..''

…………….………………..''

…………….''………………..

…………….''………………..

'…………….………………..'

'%'…………….………………..%''

'…………….'………………..

'%'…………….%'………………..'

…………….'………………..'

…………….'………………..'

'……………'.………………..'

'%'……………%'.………………..%''

''…………….………………..'

'%'%'…………….………………..%''

'…………….………………..''

'%'…………….………………..%'%''

''…………….………………..''

'%'%'…………….………………..%'%''

…………….%………………..

…………….%………………..

…………….%%………………..

…………….%%………………..

…………….%'………………..

…………….%'………………..

%'…………….………………..

%'…………….………………..

…………….………………..%'

…………….………………..%'

'…………….………………..%'

'%'…………….………………..%%''

%'…………….………………..%'

%'…………….………………..%'

'…………%….………………..'

'%'…………%….………………..%''

'…………%'….………………..'

'%'…………%%'….………………..%''

…………….;………………..

'…………….;………………..'

…………….%;………………..

'…………….%;………………..'

'…………….;………………..'

'%'…………….;………………..%''

…………….?………………..

'…………….?………………..'


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.