I have done some extensive searching on the Internet and on this forum site as well for my query. I am interested in converting my Moodle XML questions (exported from my Moodle quizzes) to a format viewable in Microsoft Word. I know I can do this via an XSL translation. However, I lack the skills necessary to do this easily.
Anyone know of an existing solution to this problem, or can anyone propose a solution based off my existing template?
Thanks!
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="quiz/question/questiontext">
<p>
<b>Question: </b>
<xsl:value-of select="text"/><br></br>
</p>
</xsl:for-each>
<xsl:for-each select="quiz/question/answer">
<p>
<b>Answer Choices: </b>
<xsl:value-of select="text"/><br></br>
</p>
</xsl:for-each>
<xsl:for-each select="quiz/question/generalfeedback">
<p>
<b>Explanation: </b>
<xsl:value-of select="text"/><br></br>
</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>