That's a bug.

https://issues.apache.org/jira/browse/DAFFODIL-2237
________________________________
From: Costello, Roger L. <[email protected]>
Sent: Sunday, November 17, 2019 7:44 AM
To: [email protected] <[email protected]>
Subject: Bug in Daffodil - it get confused by comments in certain locations


Putting a comment here works:



<xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/";>
        <!--
            Commas in a field are escaped by wrapping the field
            in double quotes. A quote in a field is escaped by
            preceding it with a double quote.
        -->
        <dfdl:defineEscapeScheme name='Quotes'>
            <dfdl:escapeScheme escapeKind='escapeBlock'


But putting the comment here results in an error:



<xs:annotation>
    <xs:appinfo source="http://www.ogf.org/dfdl/";>
        <dfdl:defineEscapeScheme name='Quotes'>

            <!--
                Commas in a field are escaped by wrapping the field
                in double quotes. A quote in a field is escaped by
                preceding it with a double quote.
            -->
            <dfdl:escapeScheme escapeKind='escapeBlock'


Here’s the error message:



[error] Schema Definition Error: The content of defineEscapeScheme is not 
complete.



Huh?



/Roger




Reply via email to