You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@daffodil.apache.org by "Costello, Roger L." <co...@mitre.org> on 2019/11/17 12:44:29 UTC

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



Re: Bug in Daffodil - it get confused by comments in certain locations

Posted by "Beckerle, Mike" <mb...@tresys.com>.
That's a bug.

https://issues.apache.org/jira/browse/DAFFODIL-2237
________________________________
From: Costello, Roger L. <co...@mitre.org>
Sent: Sunday, November 17, 2019 7:44 AM
To: users@daffodil.apache.org <us...@daffodil.apache.org>
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