- <xsl:for-each select="div">
- <xsl:choose>
- <xsl:when test="@class = 'p'">
- <opis><akap><xsl:apply-templates/></akap></opis>
- </xsl:when>
- <xsl:when test="@class = 'list'">
- <lista typ="punkt">
- <xsl:apply-templates select="div" mode="exercise.true-or-false"/>
- </lista>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
+ <xsl:call-template name="cwiczenie"/>
+ </cwiczenie>
+ </xsl:when>
+ <xsl:when test="@class = 'exercise.choice' or @class = 'exercise.choice.single'">
+ <cwiczenie typ="wybor">
+ <opis><akap>[opis]</akap></opis>
+ <lista typ="num">
+ <punkt>
+ <pytanie>
+ <xsl:for-each select="div">
+ <xsl:choose>
+ <xsl:when test="@class = 'p'">
+ <xsl:apply-templates />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:for-each>
+ </pytanie>
+ </punkt>
+ </lista>