compile once for now
[librarian.git] / librarian / pdf / wl2tex.xslt
index ecde99c..c3054d2 100644 (file)
                 </xsl:if>
                 \def\editors{<TeXML escape="1"><xsl:call-template name="editors" /></TeXML>}
                 <xsl:if test="@funders">
-                    \def\funders{Publikację ufundowali i ufundowały:
+                    \def\funders{Publikację wsparli i wsparły:
                         <TeXML escape="1"><xsl:value-of select="@funders" /></TeXML>.}
                 </xsl:if>
 
     <cmd name="par" />
     <cmd name="vspace"><parm>1em</parm></cmd>
     <group><cmd name="raggedright" />
-    <env name="longtabu"> to <TeXML escape="0">\textwidth </TeXML>
+    <xsl:element name="env">
+        <xsl:attribute name="name">
+            <xsl:choose>
+                <xsl:when test="name(.)='tabela'">longtabu</xsl:when>
+                <xsl:otherwise>tabu</xsl:otherwise>
+            </xsl:choose>
+        </xsl:attribute> to <TeXML escape="0">\textwidth </TeXML>
       <!--parm><cmd name="textwidth"/></parm-->
       <parm><TeXML escape="0"><xsl:value-of select="@_format" /></TeXML></parm>
         <xsl:choose>
           <xsl:apply-templates/>
         </xsl:otherwise>
         </xsl:choose>
-    </env>
+    </xsl:element>
     </group>
     <cmd name="vspace"><parm>1em</parm></cmd>
 </xsl:template>