Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use the new layering/line wrapping technique #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ iCalendar
====

DFDL Schemas for iCalendar file format

The schema uses an experimental DFDL language feature known as
layering to deal with line-wrapping. The layering feature is described at
[Daffodil Wiki](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=75979671)
723 changes: 366 additions & 357 deletions src/main/resources/com/mitre/iCalendar/xsd/iCalendar.dfdl.xsd

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions src/test/resources/com/mitre/iCalendar/data/example03-x-alt-1.ics

Large diffs are not rendered by default.

14,040 changes: 14,040 additions & 0 deletions src/test/resources/com/mitre/iCalendar/data/example04-attachment.ics

Large diffs are not rendered by default.

548 changes: 548 additions & 0 deletions src/test/resources/com/mitre/iCalendar/data/example05-x-alt-2.ics

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions src/test/resources/com/mitre/iCalendar/iCalendar.tdml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,42 @@
<tdml:dfdlInfoset type="file">com/mitre/iCalendar/infosets/example02-results.xml</tdml:dfdlInfoset>
</tdml:infoset>
</tdml:parserTestCase>

<!--
Test parsing a file with an alternate (HTML) format for the DESCRIPTION
property. The alternate format is specified by the X-ALT-DESC property
-->
<tdml:parserTestCase name="ex03-x-alt-1" root="icalendar" model="com/mitre/iCalendar/xsd/iCalendar.dfdl.xsd" validation="on"
roundTrip="twoPass">
<tdml:document>
<tdml:documentPart type="file">com/mitre/iCalendar/data/example03-x-alt-1.ics</tdml:documentPart>
</tdml:document>
<tdml:infoset>
<tdml:dfdlInfoset type="file">com/mitre/iCalendar/infosets/example03-x-alt-1.xml</tdml:dfdlInfoset>
</tdml:infoset>
</tdml:parserTestCase>

<!--
Test parsing file with a BASE64 encoded file attachment
-->
<tdml:parserTestCase name="ex04-attachment" root="icalendar" model="com/mitre/iCalendar/xsd/iCalendar.dfdl.xsd" validation="on"
roundTrip="twoPass">
<tdml:document>
<tdml:documentPart type="file">com/mitre/iCalendar/data/example04-attachment.ics</tdml:documentPart>
</tdml:document>
<tdml:infoset>
<tdml:dfdlInfoset type="file">com/mitre/iCalendar/infosets/example04-attachment.xml</tdml:dfdlInfoset>
</tdml:infoset>
</tdml:parserTestCase>

<tdml:parserTestCase name="ex05-x-alt-2" root="icalendar" model="com/mitre/iCalendar/xsd/iCalendar.dfdl.xsd" validation="on"
roundTrip="twoPass">
<tdml:document>
<tdml:documentPart type="file">com/mitre/iCalendar/data/example05-x-alt-2.ics</tdml:documentPart>
</tdml:document>
<tdml:infoset>
<tdml:dfdlInfoset type="file">com/mitre/iCalendar/infosets/example05-x-alt-2.xml</tdml:dfdlInfoset>
</tdml:infoset>
</tdml:parserTestCase>

</tdml:testSuite>
Loading