fix for newlines in epub
[librarian.git] / librarian / fb2 / description.xslt
index 312df2d..6d7383f 100644 (file)
                                <version>0</version>
                        </document-info>
                        <publish-info>
                                <version>0</version>
                        </document-info>
                        <publish-info>
-                               <xsl:apply-templates mode="description"
-                                       select="dc:publisher"/>
+                               <publisher>
+                                       <xsl:for-each select="//dc:publisher/text()">
+                                               <xsl:value-of select="."/>
+                                               <xsl:if test="not(position() = last())">; </xsl:if>
+                                       </xsl:for-each>
+                               </publisher>
                        </publish-info>
                </description>
        </xsl:template>
                        </publish-info>
                </description>
        </xsl:template>