pass src attribute for słowniczek
authorJan Szejko <janek37@gmail.com>
Wed, 23 Nov 2016 13:25:44 +0000 (14:25 +0100)
committerJan Szejko <janek37@gmail.com>
Wed, 23 Nov 2016 13:25:44 +0000 (14:25 +0100)
redakcja/xslt/wl2to1.xslt

index 8e91bb5..81ed7d2 100644 (file)
            <lista typ="num"><xsl:apply-templates /></lista>
        </xsl:when>
         <xsl:when test="@class = 'list.definitions'">
-            <lista typ="slowniczek"><xsl:apply-templates /></lista>
+            <xsl:choose>
+                <xsl:when test="@src = ''">
+                    <lista typ="slowniczek"><xsl:apply-templates /></lista>
+                </xsl:when>
+                <xsl:otherwise>
+                    <lista typ="slowniczek" src="{@src}"><xsl:apply-templates /></lista>
+                </xsl:otherwise>
+            </xsl:choose>
         </xsl:when>
         <xsl:when test="@class = 'list.bibliography'">
             <lista typ="czytelnia"><xsl:apply-templates /></lista>