This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
<!-- Normalization Stylsheet for Wolne Lektury XML -->
<xsl:output method="xml" encoding="utf-8" indent="yes" />
<!-- Normalization Stylsheet for Wolne Lektury XML -->
<xsl:output method="xml" encoding="utf-8" indent="yes" />
<xsl:strip-space elements="rdf:RDF rdf:Description meta doc main-text strofa stanza drama-line wlml:*" />
<xsl:param name="normalize-text" select="boolean(1)" />
<xsl:strip-space elements="rdf:RDF rdf:Description meta doc main-text strofa stanza drama-line wlml:*" />
<xsl:param name="normalize-text" select="boolean(1)" />
<xsl:template match="strofa">
<xsl:element name="stanza" namespace="http://nowoczesnapolska.org.pl/ML/Lektury/1.1">
<xsl:template match="strofa">
<xsl:element name="stanza" namespace="http://nowoczesnapolska.org.pl/ML/Lektury/1.1">
<xsl:value-of select="wlf:fix-dialog-line($prolog)" />
<xsl:apply-templates select="@*|*|text()[. != $prolog]" />
</xsl:element>
<xsl:value-of select="wlf:fix-dialog-line($prolog)" />
<xsl:apply-templates select="@*|*|text()[. != $prolog]" />
</xsl:element>
<xsl:when test="starts-with(., '.')">
<xsl:attribute name="type">dot</xsl:attribute>
</xsl:when>
<xsl:when test="starts-with(., '.')">
<xsl:attribute name="type">dot</xsl:attribute>
</xsl:when>
<xsl:template match="motto">
<xsl:element name="motto">
<xsl:apply-templates select="@*|node()" />
<xsl:template match="motto">
<xsl:element name="motto">
<xsl:apply-templates select="@*|node()" />
<xsl:variable name="sign" select="following-sibling::*[1][name() = 'motto_podpis']" />
<signature>
<xsl:apply-templates select="$sign/node()" />
<xsl:variable name="sign" select="following-sibling::*[1][name() = 'motto_podpis']" />
<signature>
<xsl:apply-templates select="$sign/node()" />
<!-- Inside RDF meta-data, leave the text unchanged -->
<xsl:template match="rdf:RDF//text()">
<!-- Inside RDF meta-data, leave the text unchanged -->
<xsl:template match="rdf:RDF//text()">