</div>
</xsl:template>
+ <!--
+ Tagi obejmujące tekst w ramce (styl wieloakapitowy bądź wielostrofowy):
+ <ramka> tekst-w-ramce </ramka>
+ -->
+ <xsl:template match="ramka">
+ <xsl:param name="mixed" />
+ <div>
+ <xsl:call-template name="standard-attributes" />
+ <xsl:apply-templates select="child::node()">
+ <xsl:with-param name="mixed" select="false()" />
+ </xsl:apply-templates>
+ </div>
+ </xsl:template>
+
<!--
Tagi obejmujące tekst motta (styl wieloakapitowy bądź wielostrofowy):
<motto> tekst-motta </motto>
</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>
-
- <xsl:template match="tabela">
- <table x-node="tabela" class="tabela">
- <xsl:call-template name="standard-attributes" />
- <tbody x-pass-thru="true">
- <xsl:apply-templates select="child::node()">
- <xsl:with-param name="mixed" select="true()" />
- </xsl:apply-templates>
- </tbody>
- </table>
- </xsl:template>
+ <!--
+ Tabela
+ -->
<xsl:template match="wiersz">
- <tr x-node="wiersz" class="wiersz">
- <xsl:call-template name="standard-attributes" />
- <xsl:apply-templates select="child::node()">
- <xsl:with-param name="mixed" select="true()" />
- </xsl:apply-templates>
- </tr>
+ <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">
- <td x-pass-thru="true">
- <div x-editable="true" x-node="kol" class="kol">
- <!-- this wrapper div is necessary for
- relative element to appear correctly
- here it's a 'edit' button -->
+ <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:with-param name="mixed" select="true()" />
</xsl:apply-templates>
</div>
- </td>
+ </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>
+
<!--
</xsl:template>
<xsl:template match="*">
- <span class="unknown-tag" x-node="{name()}">
- <xsl:call-template name="standard-attributes" />
+ <span>
+ <xsl:call-template name="standard-attributes">
+ <xsl:with-param name="extra-class">unknown-tag</xsl:with-param>
+ </xsl:call-template>
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>