You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2020/09/14 16:09:00 UTC

[jira] [Commented] (DAFFODIL-2196) XML Schema for DFDL is invalid

    [ https://issues.apache.org/jira/browse/DAFFODIL-2196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17195557#comment-17195557 ] 

Mike Beckerle commented on DAFFODIL-2196:
-----------------------------------------

So why does the XML Schema for DFDL (which is an XML Schema for XML Schema - subset thereof) have to have this definition for xs:boolean at all?

The XML Schema for DFDL actually contains definitions for all the simple types of XSD, and they're all circular like this.
```
  <xsd:simpleType name="string" id="string">
    <xsd:restriction base="xsd:string">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="boolean" id="boolean">
    <xsd:restriction base="xsd:boolean">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="float" id="float">
    <xsd:restriction base="xsd:float">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="double" id="double">
    <xsd:restriction base="xsd:double">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="decimal" id="decimal">
    <xsd:restriction base="xsd:decimal">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="dateTime" id="dateTime">
    <xsd:restriction base="xsd:dateTime">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="time" id="time">
    <xsd:restriction base="xsd:time">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="date" id="date">
    <xsd:restriction base="xsd:date">
    </xsd:restriction>
  </xsd:simpleType>

  <xsd:simpleType name="hexBinary" id="hexBinary">
    <xsd:restriction base="xsd:hexBinary">
    </xsd:restriction>
  </xsd:simpleType>
```

Maybe they can all just be deleted?

> XML Schema for DFDL is invalid
> ------------------------------
>
>                 Key: DAFFODIL-2196
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2196
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End
>    Affects Versions: 2.4.0
>            Reporter: Mike Beckerle
>            Assignee: Rick
>            Priority: Major
>              Labels: beginner
>
> The XML Schema for DFDL Schemas contains a broken, circular, type definition for boolean.
>  
> !https://attachments.office.net/owa/mbeckerle@tresys.com/service.svc/s/GetAttachmentThumbnail?id=AAMkAGNlM2NiMDA1LTBmMjQtNDExOS05OThkLTBiZTM2YjJhMjhlMABGAAAAAAC7M%2FjUiiZrQaUtdTD88ILjBwCGZaTuXXzVTrtqA%2F1w5gdwAAAAAAEJAACGZaTuXXzVTrtqA%2F1w5gdwAAHI9WcQAAABEgAQANpwxh6K5RBArbW1PlOIGF4%3D&thumbnailType=2&owa=outlook.office.com&scriptVer=2019082310.17&X-OWA-CANARY=jwuKIWr7cEq-TNVEVczMbwAF6NXyMtcYG-XfhIdJq-djxCpkRojfaKw5Wtd6gqYdn56KGdoIco8.&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjA2MDBGOUY2NzQ2MjA3MzdFNzM0MDRFMjg3QzQ1QTgxOENCN0NFQjgiLCJ4NXQiOiJCZ0Q1OW5SaUJ6Zm5OQVRpaDhSYWdZeTN6cmciLCJ0eXAiOiJKV1QifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInZlciI6IkV4Y2hhbmdlLkNhbGxiYWNrLlYxIiwiYXBwY3R4c2VuZGVyIjoiT3dhRG93bmxvYWRAYTBkNDU2NjctNmMwNy00ZTg4LTg2OGYtNGFjOWFmOTVjN2VkIiwiYXBwY3R4Ijoie1wibXNleGNocHJvdFwiOlwib3dhXCIsXCJwcmltYXJ5c2lkXCI6XCJTLTEtNS0yMS0yOTI1MzkwNzU2LTQxODU2NjM4Mi04NDM4MzgwNjktNjU4NDIxOVwiLFwicHVpZFwiOlwiMTE1MzgzNjI5Njc1NDkxMjYwOVwiLFwib2lkXCI6XCJiZjlmZThmOC02YzQ1LTRmOWQtOWJhNS02M2NjZDRiMmYzOThcIixcInNjb3B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