<xsl:template match="motto_podpis" mode="motto">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<xsl:template match="motto_podpis" />
<xsl:template match="naglowek_listy">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<xsl:template match="lista_osoba">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<!-- Tagi obejmujące inne komentarze wprowadzające
-->
<xsl:template match="miejsce_czas">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
</div>
</xsl:template>
+ <xsl:template match="ilustr">
+ <div>
+ <xsl:call-template name="standard-attributes" />
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="@src" />
+ </xsl:attribute>
+ </img>
+ <p class="alt"><xsl:value-of select="@alt"/></p>
+ </div>
+ </xsl:template>
+
<!--
***********************************
Style akapitowe oraz strofy i wersy
<xsl:template match="akap">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<xsl:template match="akap_cd">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<xsl:template match="akap_dialog">
<xsl:param name="mixed" />
- <p x-editable="true">
+ <div x-editable="true">
<xsl:call-template name="standard-attributes" />
<xsl:call-template name="context-menu" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:template>
<!--
<!-- Possible variants: -->
<xsl:choose>
<!-- Simple verse == not wers_ tags anywhere until the ending br -->
- <xsl:when test="not($verse-content[starts-with(name(), 'wers_')])">
- <p class="wers" x-node="wers" x-verse="true">
+ <xsl:when test="not($verse-content[starts-with(name(), 'wers')])">
+ <div class="wers" x-node="wers" x-verse="true" x-auto-node="true">
<xsl:apply-templates select="$verse-content[local-name(.) != 'br']">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
</xsl:when>
<xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template match="wers_cd|wers_akap|wers_wciety|wers_do_prawej">
+ <xsl:template match="wers_cd|wers_akap|wers_wciety|wers_do_prawej|wers">
<xsl:param name="mixed" />
<!-- <xsl:choose>
<xsl:when test="ancestor::*[0]/self::strofa"> -->
- <p x-verse="true">
+ <div x-verse="true">
<xsl:call-template name="standard-attributes" />
<xsl:apply-templates select="child::node()">
<xsl:with-param name="mixed" select="true()" />
</xsl:apply-templates>
- </p>
+ </div>
<!-- </xsl:when>
<xsl:choose> -->
</xsl:template>
<xsl:template match="sekcja_asterysk">
<xsl:param name="mixed" />
- <p><xsl:call-template name="standard-attributes" /></p>
+ <div><xsl:call-template name="standard-attributes" /></div>
</xsl:template>
<xsl:template match="separator_linia">
</span>
</xsl:template>
+ <xsl:template match="ref">
+ <span x-editable="true" x-common="common" x-edit-no-format="true" x-edit-attribute="href">
+ <xsl:call-template name="standard-attributes">
+ <xsl:with-param name="extra-class" select="'reference-inline-box'" />
+ </xsl:call-template>
+ <a class="reference">📌</a>
+ </span>
+ </xsl:template>
+
<xsl:template match="begin">
<span>
<xsl:call-template name="standard-attributes" />
</xsl:template>
<xsl:template match="motyw">
- <span x-editable="true" x-common="common">
+ <span x-editable="true" x-edit-no-format="true" x-common="common">
<xsl:call-template name="standard-attributes" />
<xsl:attribute name="theme-class">
<xsl:value-of select="substring-after(@id, 'm')" />