Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: revisit on apache XML schema library. Confirmed limitations.

...

  • Align parameters on different lines in the same column
  • Align the arrows of consecutive single-line case statements

Likewise, if you are coding using IntelliJ IDEA, you must explicitly check two options that are disabled by default (File→Settings, Editor Scala, Spaces tab):

  • Import braces
  • Around '@' in pattern bindings

64-bit vs. 32-bit

Our goal is all-64-bit capabilities. Unfortunately, many Java and Scala libraries do not allow offsets or positions larger than a signed 32-bit Int can hold.

...

There are some "supposedly" standard libraries that we're not using, basically because we tried and they didn't work out. Details on these efforts are below. Some day in the future this may be worth revisiting, but only if either the libraries have improved or we have someone with maintenance-level experience with them join the Daffodil project, that is, someone who knows how to make them work properlydecide to enhance them.

Apache XML Schema

This library has been tried and is inadequate to our needs currently (20122022-0212-2406). It lacks support for non-native attributes, the support for appinfo and annotations in general is difficult to use (if it works at all), and it has no escape-mechanism by which one can bypass, get back to the XML objects themselves, and overcome its limitations. It has no notion of a schema component having a location within a file, such as file, line number, and column number (It inherits this from w3c DOM Document class). It also lacks a first class notion of a schema document (corresponding to the xs:schema object defined by one file). This makes it impossible to implement DFDL's schema-file lexical scoping. 

XSOM - XML Schema Object Model

...