qtiworks
qtiworks copied to clipboard
Finish implementation of printedVariable
The implementation of printedVariable
is delegating to Java's String formatting classes, which does not support of all of the specified formats. The rendering XSLT is falling over when it encounters these things, so it's a bit yucky.
As of 1.0-beta8 or 1.0.0, the rendering XSLT should no longer blow up when encountering an unsupported format.
Summary of current implementation...
The current implementation of printedVariable simply passes the variable to Java's implementation of 'formatted print' (printf) using the computed value of the variable. This therefore doesn't handle:
(1) Things in C's printf that are not included in Java's printf implementation. (2) The custom printf flags added to QTI (3) The additional optional printedVariable attributes.
Sadly I have no resources available to fix this, at present.
See also issue #57.