qtiworks icon indicating copy to clipboard operation
qtiworks copied to clipboard

Finish implementation of printedVariable

Open davemckain opened this issue 11 years ago • 3 comments

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.

davemckain avatar Apr 18 '13 10:04 davemckain

As of 1.0-beta8 or 1.0.0, the rendering XSLT should no longer blow up when encountering an unsupported format.

davemckain avatar Aug 05 '14 09:08 davemckain

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.

davemckain avatar Aug 05 '14 09:08 davemckain

See also issue #57.

davemckain avatar Jan 05 '15 12:01 davemckain