zastap excercise
[redakcja.git] / redakcja / static / xsl / wl2html_client.xsl
index afb3366..8be6e22 100644 (file)
         </span>
     </xsl:template>
 
+    <!--
+        **************************
+           MATERIAŁY EDUKACYJNE
+        **************************
+    -->
+
+    <!--
+        Listy
+    -->
     <xsl:template match="lista">
       <xsl:variable name="listtag">
        <xsl:choose>
       </li>
     </xsl:template>
 
-
+    <!--
+        Słowniczek
+    -->
     <xsl:template match="definiendum">
       <dt x-editable="true" x-node="definiendum" class="definiendum">
             <xsl:call-template name="standard-attributes" />
       </dd>
     </xsl:template>
 
+    <!--
+        Tabela
+    -->
+
+    <xsl:template match="wiersz">
+      <span>
+        <xsl:call-template name="standard-attributes" />
+        <xsl:apply-templates select="child::node()">
+         <xsl:with-param name="mixed" select="true()" />
+        </xsl:apply-templates>
+      </span>
+    </xsl:template>
+
+
+    <xsl:template match="kol">
+      <span>
+            <xsl:call-template name="standard-attributes" />
+           <div x-editable="true" x-node="kol-inside" x-pass-thru="true">
+              <xsl:apply-templates select="child::node()">
+               <xsl:with-param name="mixed" select="true()" />
+              </xsl:apply-templates>
+           </div>
+      </span>
+    </xsl:template>
+
+
+    <!--
+        Obraz
+    -->
+    <xsl:template match="obraz">
+      <img x-node="obraz" src="http://i.imgur.com/{@name}.jpg" class="obraz">
+            <xsl:call-template name="standard-attributes" />
+      </img>
+    </xsl:template>
+
+    <!--
+        Semantyczne pudełka
+    -->
+    <xsl:template match="pomoce|forma|czas|opis|kol-inside">
+      <span x-editable="true">
+            <xsl:call-template name="standard-attributes" />
+            <xsl:apply-templates select="child::node()">
+              <xsl:with-param name="mixed" select="true()" />
+            </xsl:apply-templates>
+      </span>
+    </xsl:template>
+
+
+
     <!--
         ****************
          TEKST WŁAŚCIWY