I think this would also work, and allow
you to use delimited scanning.
<xs:sequence
dfdl:separator="" dfdl:terminator="end" dfdl:ignoreCase="no">
<xs:element name="weird" type="xs:string"
dfdl:initiator="start" dfdl:ignoreCase="yes" dfdl:lengthKind="delimited"/>
</xs:sequence>
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:
19/06/2013 23:42
Subject:
[DFDL-WG] how
to do mix of case sensitive and insensitive delimiters
Sent by:
dfdl-wg-bounces@ogf.org
I have a wierd case where the initiator wants to be case insensitive matching,
but the terminator wants to be case sensitive.
The only way I can think of dealing with this is to use the initiator,
but handle the length via lengthKind='pattern' to grab the value, doing
lookahead so it will stop before the terminator.
Then an empty sequence with a case sensitive terminator to pick off that
part of the data stream.
--
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