fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a447be
)
simplify question conversion
author
Jan Szejko
<janek37@gmail.com>
Tue, 22 Aug 2017 14:46:49 +0000
(16:46 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 22 Aug 2017 14:46:49 +0000
(16:46 +0200)
redakcja/xslt/wl2to1.xslt
patch
|
blob
|
history
diff --git
a/redakcja/xslt/wl2to1.xslt
b/redakcja/xslt/wl2to1.xslt
index
75eb00d
..
e88412a
100644
(file)
--- a/
redakcja/xslt/wl2to1.xslt
+++ b/
redakcja/xslt/wl2to1.xslt
@@
-131,6
+131,20
@@
<xsl:apply-templates />
</xsl:element>
</xsl:when>
<xsl:apply-templates />
</xsl:element>
</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>
<xsl:when test="@class = 'defined'">
<xsl:choose>
<xsl:when test="count(ancestor::*) = 4 ">
<xsl:when test="@class = 'defined'">
<xsl:choose>
<xsl:when test="count(ancestor::*) = 4 ">
@@
-152,23
+166,7
@@
</xsl:when>
<xsl:when test="@class = 'exercise.choice' or @class = 'exercise.choice.single'">
<cwiczenie typ="wybor">
</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>
+ <xsl:call-template name="cwiczenie"/>
</cwiczenie>
</xsl:when>
<xsl:when test="@class = 'exercise.gap'">
</cwiczenie>
</xsl:when>
<xsl:when test="@class = 'exercise.gap'">