use of uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions in project OpenOLAT by OpenOLAT.
the class QTI21ServiceImpl method persistAssessmentObject.
@Override
public boolean persistAssessmentObject(File resourceFile, AssessmentObject assessmentObject) {
try (FileOutputStream out = new FileOutputStream(resourceFile)) {
final XsltSerializationOptions xsltSerializationOptions = new XsltSerializationOptions();
xsltSerializationOptions.setIndenting(false);
qtiSerializer().serializeJqtiObject(assessmentObject, new StreamResult(out), new SaxFiringOptions(), xsltSerializationOptions);
assessmentTestsCache.remove(resourceFile);
assessmentItemsCache.remove(resourceFile);
return true;
} catch (Exception e) {
log.error("", e);
return false;
}
}
use of uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions in project OpenOLAT by OpenOLAT.
the class AssessmentHtmlBuilder method serializeJqtiObject.
private void serializeJqtiObject(QtiNode node, StringOutput sb) {
final XsltSerializationOptions xsltSerializationOptions = new XsltSerializationOptions();
xsltSerializationOptions.setIndenting(false);
qtiSerializer.serializeJqtiObject(node, new StreamResult(sb), new SaxFiringOptions(), xsltSerializationOptions);
}
use of uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions in project OpenOLAT by OpenOLAT.
the class AssessmentItemBuilder method serializeJqtiObject.
protected final void serializeJqtiObject(QtiNode block, StringOutput sb) {
final XsltSerializationOptions xsltSerializationOptions = new XsltSerializationOptions();
xsltSerializationOptions.setIndenting(false);
qtiSerializer.serializeJqtiObject(block, new StreamResult(sb), new SaxFiringOptions(), xsltSerializationOptions);
}
use of uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions in project openolat by klemens.
the class AssessmentItemBuilder method serializeJqtiObject.
protected final void serializeJqtiObject(QtiNode block, StringOutput sb) {
final XsltSerializationOptions xsltSerializationOptions = new XsltSerializationOptions();
xsltSerializationOptions.setIndenting(false);
qtiSerializer.serializeJqtiObject(block, new StreamResult(sb), new SaxFiringOptions(), xsltSerializationOptions);
}
use of uk.ac.ed.ph.jqtiplus.xmlutils.xslt.XsltSerializationOptions in project openolat by klemens.
the class AssessmentHtmlBuilder method serializeJqtiObject.
private void serializeJqtiObject(QtiNode node, StringOutput sb) {
final XsltSerializationOptions xsltSerializationOptions = new XsltSerializationOptions();
xsltSerializationOptions.setIndenting(false);
qtiSerializer.serializeJqtiObject(node, new StreamResult(sb), new SaxFiringOptions(), xsltSerializationOptions);
}
Aggregations