It should be ignored with a warning according to spec section 2.2 (with errata applied).

o Property is not applicable because of another DFDL property setting.

Warning (optional). Example is binaryNumberRep when representation is text.


Regards

Steve Hanson
Architect, IBM Data Format Description Language (DFDL)
Co-Chair,
OGF DFDL Working Group
IBM SWG, Hursley, UK

smh@uk.ibm.com
tel:+44-1962-815848




From:        Mike Beckerle <mbeckerle.dfdl@gmail.com>
To:        dfdl-wg@ogf.org,
Date:        31/05/2013 19:45
Subject:        [DFDL-WG] escapeKind clarifications needed.
Sent by:        dfdl-wg-bounces@ogf.org





When escapeKind='escapeBlock' we only use the escapeEscapeCharacter if needed to escape the block end. We don't use the escapeCharacter at all.

So, is it an error if escapeKind='escapeBlock' and you define a value for escapeCharacter in the same dfdl:escapeScheme?

Such property cannot be inherited by scope, so since escapeBlock kind doesn't use the escapeCharacter, this can only be either an error, or silently ignored, or ignored with a warning.

An error is the best choice from a language design perspective. 

--
Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology |
www.tresys.com
--
 dfdl-wg mailing list
 dfdl-wg@ogf.org
 
https://www.ogf.org/mailman/listinfo/dfdl-wg

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU