summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl')
-rw-r--r--Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl36
1 files changed, 26 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl b/Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl
index d49f692a387..f3198fc1532 100644
--- a/Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl
+++ b/Master/texmf-dist/source/latex/stex/xsl/omdocpost.xsl
@@ -94,9 +94,7 @@
<!-- for citations we just extract the bibrefs at the moment. -->
<xsl:template match="ltx:cite"><xsl:apply-templates select="ltx:bibref"/></xsl:template>
<xsl:template match="ltx:bibref">
- <xsl:for-each select="str:tokenize(@bibrefs,',')">
- <ref type="cite" xref="{.}"/>
- </xsl:for-each>
+ <citation><xsl:copy-of select="@bibrefs"/></citation>
</xsl:template>
<!-- we ignore LaTeXML breaks -->
@@ -173,11 +171,28 @@
</xsl:template>
<!-- for LaTeXML tables -->
-<xsl:template match="ltx:tabular"><table><xsl:apply-templates/></table></xsl:template>
-<xsl:template match="ltx:tbody"><xsl:apply-templates/></xsl:template>
-<xsl:template match="ltx:tr"><tr><xsl:apply-templates/></tr></xsl:template>
-<xsl:template match="ltx:td"><td><xsl:apply-templates/></td></xsl:template>
-<xsl:template match="ltx:thead"><xsl:apply-templates/></xsl:template>
+<xsl:template match="ltx:tabular">
+ <table>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </table>
+</xsl:template>
+
+<xsl:template match="ltx:tr">
+ <tr>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </tr>
+</xsl:template>
+
+<xsl:template match="ltx:td">
+ <td>
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </td>
+</xsl:template>
+
+<xsl:template match="ltx:thead|ltx:tbody"><xsl:apply-templates/></xsl:template>
<!-- for LaTeXML references from \url -->
<xsl:template match="ltx:ref[@class='url']">
@@ -379,7 +394,8 @@
</xsl:if>
<xsl:if test="//om:OMS[@cd='latexml' and
(@name='greater-than' or
- @name='less-than' or
+ @name='less-than' or
+ @name='not-equals' or
@name='greater-than-or-equals' or
@name='less-than-or-equals')]">
<imports from="{$omcds}/relation1.omdoc#relation1"/>
@@ -429,7 +445,7 @@
</xsl:template>
<xsl:template match="om:OMS[@cd='latexml' and @name='not-equals']">
- <om:OMS cd="relation1" name="ne"/>
+ <om:OMS cd="relation1" name="neq"/>
</xsl:template>
<!-- get rid of the sectioning commands -->