+ <xsl:when test="@class = 'item.category'">
+ <punkt nazwa="{@name}"><xsl:apply-templates /></punkt>
+ </xsl:when>
+ <xsl:when test="@class = 'item.answer'">
+ <punkt>
+ <xsl:attribute name="rozw">
+ <xsl:choose>
+ <xsl:when test="@answer = 'true'">prawda</xsl:when>
+ <xsl:when test="@answer = 'false'">falsz</xsl:when>
+ <xsl:otherwise><xsl:value-of select="@answer" /></xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ <xsl:apply-templates />
+ </punkt>
+ </xsl:when>
+ <xsl:when test="@class = 'question'">
+ <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>
+ </xsl:when>