X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/613c90833cd963f769500b79b59e9986bc8970ad..b125e0db22458fa98fe6e3a06cdc33c189e89401:/redakcja/static/xsl/wl2html_client.xsl diff --git a/redakcja/static/xsl/wl2html_client.xsl b/redakcja/static/xsl/wl2html_client.xsl index 1739f629..f5f4e04d 100644 --- a/redakcja/static/xsl/wl2html_client.xsl +++ b/redakcja/static/xsl/wl2html_client.xsl @@ -189,6 +189,16 @@ </div> </xsl:template> + <xsl:template match="nota_red"> + <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 dedykacji (styl wieloakapitowy bÄ dź wielostrofowy): <dedykacja> tekst-dedykacji </dedykacja> @@ -634,12 +644,12 @@ --> <xsl:template match="sekcja_swiatlo"> <xsl:param name="mixed" /> - <br><xsl:call-template name="standard-attributes" /></br> + <hr><xsl:call-template name="standard-attributes" /></hr> </xsl:template> <xsl:template match="sekcja_asterysk"> <xsl:param name="mixed" /> - <hr><xsl:call-template name="standard-attributes" /></hr> + <p><xsl:call-template name="standard-attributes" /></p> </xsl:template> <xsl:template match="separator_linia"> @@ -649,7 +659,12 @@ <xsl:template match="zastepnik_wersu"> <xsl:param name="mixed" /> - <hr><xsl:call-template name="standard-attributes" /></hr> + <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> <!-- @@ -728,7 +743,9 @@ <!-- <xsl:value-of select="." /> --> <xsl:param name="mixed" /> <xsl:choose> - <xsl:when test="normalize-space(.) = ''" /> + <xsl:when test="normalize-space(.) = ''"> + <xsl:value-of select="." /> + </xsl:when> <xsl:when test="not($mixed)"> <span x-node="out-of-flow-text" class="out-of-flow-text" x-editable="true"> <xsl:value-of select="." /> @@ -765,7 +782,10 @@ </xsl:template> <xsl:template match="*"> - <span class="unknown-tag" x-node="{name()}"> + <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> @@ -808,5 +828,16 @@ </xsl:choose> </xsl:for-each> </xsl:template> - -</xsl:stylesheet> \ No newline at end of file + + <xsl:template match="alien"> + <span class="alien" x-pass-thru="true"> + <xsl:apply-templates select="node()"> + <xsl:with-param name="mixed" select="true()" /> + </xsl:apply-templates> + </span> + </xsl:template> + + <xsl:template match="comment()"> + <xsl:comment><xsl:value-of select="."/></xsl:comment> + </xsl:template> +</xsl:stylesheet>