minor fix in wl2->wl1
authorJan Szejko <janek37@gmail.com>
Fri, 6 Oct 2017 16:17:36 +0000 (18:17 +0200)
committerJan Szejko <janek37@gmail.com>
Fri, 6 Oct 2017 16:17:36 +0000 (18:17 +0200)
redakcja/xslt/wl2to1.xslt

index 82fd2b4..b7b5329 100644 (file)
 
             <xsl:apply-templates select="metadata" mode="meta" />
 
-            <xsl:if test="not(//dc:publisher)">
+            <xsl:if test="not(/section/metadata/dc:publisher)">
                 <dc:publisher xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">Fundacja Nowoczesna Polska</dc:publisher>
             </xsl:if>
             <dc:rights xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">Creative Commons Uznanie autorstwa - Na tych samych warunkach 3.0</dc:rights>
             <dc:rights.license xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">http://creativecommons.org/licenses/by-sa/3.0/</dc:rights.license>
             <dc:format xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">xml</dc:format>
             <!--dc:type xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">added-var</dc:type-->
-            <xsl:if test="not(//dc:date)">
+            <xsl:if test="not(/section/metadata/dc:date)">
                 <dc:date xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/">2015-01-12</dc:date>
             </xsl:if>
             <!--dc:audience xml:lang="pl" xmlns:dc="http://purl.org/dc/elements/1.1/"><!- -liceum - -><xsl:value-of select="//dc:audience/text()" /></dc:audience-->