diff options
Diffstat (limited to 'Master/texmf-dist/tex4ht/xtpipes/docbook.4xt')
-rwxr-xr-x | Master/texmf-dist/tex4ht/xtpipes/docbook.4xt | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex4ht/xtpipes/docbook.4xt b/Master/texmf-dist/tex4ht/xtpipes/docbook.4xt index 903aaf4838b..816e67013a5 100755 --- a/Master/texmf-dist/tex4ht/xtpipes/docbook.4xt +++ b/Master/texmf-dist/tex4ht/xtpipes/docbook.4xt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" > -<xtpipes preamble="yes" signature="docbook.4xt (2008-02-22-01:05)"> +<xtpipes preamble="yes" signature="docbook.4xt (2008-08-25-15:33)"> <sax content-handler="xtpipes.util.ScriptsManager" lexical-handler="xtpipes.util.ScriptsManagerLH" > <script element="ulink" > @@ -35,6 +35,31 @@ </script> <script element="tbody" > + <set name="dirt" > + <![CDATA[ + <xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + > + <xsl:output omit-xml-declaration = "yes" /> + + <xsl:template match=" row[ + (count(child::entry) = 1) + and + ( normalize-space(child::entry[1]/child::para[1]/child::comment()) + = 'dirt' + ) +]"> +</xsl:template> + + <xsl:template match="*|@*|text()|comment()" > + <xsl:copy> + <xsl:apply-templates select="*|@*|text()|comment()" /> + </xsl:copy> + </xsl:template> + </xsl:stylesheet> +]]> + + </set> <set name="tbody" > <![CDATA[ <xsl:stylesheet version="1.0" @@ -60,14 +85,16 @@ preceding-sibling::*[1] [ self::row[ not(@role) ] ] and - ( count(child::entry) = count(preceding-sibling::*[1]/child::entry)) + ( count(child::entry) + = count(preceding-sibling::*[1]/child::entry)) ]" /> <xsl:template match=" row[ not(@role) and following-sibling::*[1][ self::row[@role = 'cline'] ] and - ( count(child::entry) = count(following-sibling::*[1]/child::entry)) + ( count(child::entry) + = count(following-sibling::*[1]/child::entry)) ] "> <xsl:copy> <xsl:apply-templates select="@*" /> @@ -107,6 +134,8 @@ </set> <xslt name="." xml="." xsl="tbody" /> + <xslt name="." xml="." xsl="dirt" /> + <dom name="." xml="." method="cline" class="tex4ht.DbUtilities" /> </script> </sax> |