Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3967

QTI 1.2: illegal character block result XSLT transformation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.5.20, 13.2.2
    • Component/s: None
    • Labels:
      None

      Description

      Saxon is a XSLT 2.0 engine and the version 2.0 of the specification doesn't accept none HTML entity like the entity with code 129. The solution is to try to instantiate the standard implementation of the JDK which is a XSLT 1.0 compliant engine.

      2019-03-08 10:41:31,964 [ajp-nio2-8006-exec-492] ERROR LocalizedXSLTransformer - OLAT::ERROR ^%^ N1-E62827 ^%^ org.olat.ims.qti.render 
      
      https://olat.xyz.ch/auth/1%3A88%3A1020162414%3A1%3A0%3Acid%3Asitse/
      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
      
      **RedScreen** Error transforming XML.
      <dispatchinfo>
      	<componentinfo>
      		<compname>olatmodiqrun</compname>
      		<compclass>org.olat.core.gui.components.velocity.VelocityContainer</compclass>
      		<extendedinfo>page:org/olat/modules/iq/_content/qti.html</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>sas</command>
      			<tostring>com:sas,org.olat.core.gui.control.Event@1bc04</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.modules.iq.IQDisplayController</controllername>
      		<controllername>org.olat.course.nodes.iq.IQRunController</controllername>
      		<controllername>org.olat.course.run.RunMainController</controllername>
      		<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: Error transforming XML.
      -> at org.olat.ims.qti.render.LocalizedXSLTransformer.render(LocalizedXSLTransformer.java:156)
         at org.olat.ims.qti.render.LocalizedXSLTransformer.renderResults(LocalizedXSLTransformer.java:167)
         at org.olat.modules.iq.IQManager.transformResultsReporting(IQManager.java:267)
         at org.olat.modules.iq.IQDisplayController.generateDetailsResults(IQDisplayController.java:612)
         at org.olat.modules.iq.IQDisplayController.postSubmitAssessment(IQDisplayController.java:596)
         at org.olat.modules.iq.IQDisplayController.event(IQDisplayController.java:529)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
         at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
         at org.olat.core.gui.components.velocity.VelocityContainer.doDispatchRequest(VelocityContainer.java:114)
      >>> stack of 2.cause::net.sf.saxon.trans.XPathException: Illegal HTML character: decimal 129
      -> at net.sf.saxon.event.HTMLEmitter.writeEscape(HTMLEmitter.java:344)
         at net.sf.saxon.event.XMLEmitter.characters(XMLEmitter.java:560)
         at net.sf.saxon.event.HTMLEmitter.characters(HTMLEmitter.java:453)
         at net.sf.saxon.event.HTMLIndenter.characters(HTMLIndenter.java:178)
         at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:182)
         at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:182)
         at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:182)
         at net.sf.saxon.event.ComplexContentOutputter.characters(ComplexContentOutputter.java:159)
         at net.sf.saxon.instruct.ValueOf.processLeavingTail(ValueOf.java:245)
         at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)
         at net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)
         
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Mandy Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m