Hi Folks,

Is there such a thing as in-scope delimiters?

At the field element in the below DFDL schema, what are the in-scope 
delimiters? Comma and newline?

Notice that the field element references a block escapeScheme, which specifies 
that the double quote symbol is used to escape a block of text. If a field's 
value is escaped (via double quotes), then what delimiters are escaped? All 
in-scope delimiters - comma and newline?  /Roger

<xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/";>
        <dfdl:defineEscapeScheme name='Quotes'>
            <dfdl:escapeScheme escapeKind='escapeBlock'
                escapeBlockStart='"'
                escapeBlockEnd='"'
                escapeEscapeCharacter='"'
                extraEscapedCharacters=''
                generateEscapeBlock='whenNeeded'/>
        </dfdl:defineEscapeScheme>
        <dfdl:format ref="default-dfdl-properties"/>
    </xs:appinfo>
</xs:annotation>

<xs:element name="csv">
    <xs:complexType>
        <xs:sequence>
            <xs:sequence dfdl:separator="%NL;" dfdl:separatorPosition="infix">
                <xs:element name="record" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence dfdl:separator="," 
dfdl:separatorPosition="infix">
                            <xs:element name="field" maxOccurs="unbounded" 
type="xs:string"
                                dfdl:escapeSchemeRef="Quotes"
                                dfdl:occursCountKind="implicit">
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:sequence>
    </xs:complexType>
</xs:element>


Reply via email to