summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex4ht/xtpipes
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-07-06 18:18:57 +0000
committerKarl Berry <karl@freefriends.org>2008-07-06 18:18:57 +0000
commit231fc251fff6ff4c087e7678772c15875a8f91d6 (patch)
treed0756fdb158e4e74aac20d188fedb0a001fde630 /Master/texmf-dist/tex4ht/xtpipes
parentcb2c4aa6e476dccf515b5d163ddf1c6b3a961372 (diff)
tex4ht-1.0.2008_07_05_0937
git-svn-id: svn://tug.org/texlive/trunk@9301 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex4ht/xtpipes')
-rwxr-xr-xMaster/texmf-dist/tex4ht/xtpipes/javahelp.4xt94
-rwxr-xr-xMaster/texmf-dist/tex4ht/xtpipes/oo-math.4xt2
-rwxr-xr-xMaster/texmf-dist/tex4ht/xtpipes/oo-text.4xt158
-rwxr-xr-xMaster/texmf-dist/tex4ht/xtpipes/xhtml.4xt2
-rwxr-xr-xMaster/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd2
5 files changed, 254 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex4ht/xtpipes/javahelp.4xt b/Master/texmf-dist/tex4ht/xtpipes/javahelp.4xt
new file mode 100755
index 00000000000..f553896a0ee
--- /dev/null
+++ b/Master/texmf-dist/tex4ht/xtpipes/javahelp.4xt
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
+<xtpipes preamble="yes" signature="javahelp.4xt (2008-06-28-22:07)">
+ <sax content-handler="xtpipes.util.ScriptsManager"
+ lexical-handler="xtpipes.util.ScriptsManagerLH" >
+ <script element="table::tabular" >
+ <set name="tabular" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+ <xsl:output omit-xml-declaration = "yes" method="xml" />
+
+ <xsl:template match=" table[ @class='tabular' ]
+ / tr[ (normalize-space(.)='') ] " >
+
+<xsl:message terminate="no">
+OK 1
+</xsl:message>
+
+ <xsl:if test=" normalize-space(following-sibling::*) != '' ">
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+<xsl:message terminate="no">
+OK 2
+</xsl:message>
+ </xsl:copy>
+ </xsl:if>
+</xsl:template>
+<xsl:template match=" tr[ (normalize-space(.)='')
+ and
+ (parent::table[ @class='tabular' ])
+ ] " >
+
+<xsl:message terminate="no">
+OK 1
+</xsl:message>
+
+ <xsl:if test=" normalize-space(following-sibling::*) != '' ">
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+<xsl:message terminate="no">
+OK 2
+</xsl:message>
+ </xsl:copy>
+ </xsl:if>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+ </set>
+ <xslt name="." xml="." xsl="tabular" />
+</script>
+
+ <script element="table::longtable" >
+ <set name="longtbl" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ >
+ <xsl:output omit-xml-declaration = "yes" method="xml" />
+
+ <xsl:template match=" table[ @class='longtable' ]
+ / tr[ (normalize-space(.)='') ] " >
+ <xsl:if test=" normalize-space(following-sibling::*) != '' ">
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:if>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+ </set>
+ <xslt name="." xml="." xsl="longtbl" />
+</script>
+
+
+
+ </sax>
+</xtpipes>
+
diff --git a/Master/texmf-dist/tex4ht/xtpipes/oo-math.4xt b/Master/texmf-dist/tex4ht/xtpipes/oo-math.4xt
index 5cf25daddf7..d6864098d72 100755
--- a/Master/texmf-dist/tex4ht/xtpipes/oo-math.4xt
+++ b/Master/texmf-dist/tex4ht/xtpipes/oo-math.4xt
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
-<xtpipes preamble="yes" signature="oo-math.4xt (2008-02-20-10:22)">
+<xtpipes preamble="yes" signature="oo-math.4xt (2008-06-15-00:45)">
<sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OomFilter"
lexical-handler="xtpipes.util.ScriptsManagerLH" >
<script element="math:mtable" >
diff --git a/Master/texmf-dist/tex4ht/xtpipes/oo-text.4xt b/Master/texmf-dist/tex4ht/xtpipes/oo-text.4xt
index 163f35bde5f..99ecef7cb24 100755
--- a/Master/texmf-dist/tex4ht/xtpipes/oo-text.4xt
+++ b/Master/texmf-dist/tex4ht/xtpipes/oo-text.4xt
@@ -1,8 +1,164 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
-<xtpipes preamble="yes" signature="oo-text.4xt (2008-02-20-10:22)">
+<xtpipes preamble="yes" signature="oo-text.4xt (2008-06-15-00:45)">
<sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter"
lexical-handler="xtpipes.util.ScriptsManagerLH" >
+ <script element="t4htlink" >
+ <set name="t4ht-link" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
+ xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
+ xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
+ xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
+ xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
+ xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
+ xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
+ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
+ xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
+ xmlns:ooo="http://openoffice.org/2004/office"
+ xmlns:ooow="http://openoffice.org/2004/writer"
+ xmlns:oooc="http://openoffice.org/2004/calc"
+ xmlns:dom="http://www.w3.org/2001/xml-events"
+ xmlns:xforms="http://www.w3.org/2002/xforms"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+ <xsl:output omit-xml-declaration = "yes" />
+
+ <xsl:template match="t4htlink[ @href = concat('#',@name) ]" >
+ <xsl:apply-templates select="*|text()|comment()" />
+ <text:reference-mark>
+ <xsl:attribute name="text:name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:text> </xsl:text>
+ </text:reference-mark>
+</xsl:template>
+<xsl:template match="t4htlink[ not(@name)
+ and
+ starts-with(@href, '#')
+]" >
+ <xsl:apply-templates select="*|text()|comment()" />
+ <text:span>
+ <xsl:attribute name="text:style-name">
+ <xsl:text>reference-ref</xsl:text>
+ </xsl:attribute>
+ <text:reference-ref>
+ <xsl:attribute name="text:ref-name">
+ <xsl:value-of select="substring( @href, 2 )"/>
+ </xsl:attribute>
+ <xsl:attribute name="text:reference-format">
+ <xsl:text>text</xsl:text>
+ </xsl:attribute>
+ <xsl:text> </xsl:text>
+ </text:reference-ref>
+ </text:span>
+</xsl:template>
+<xsl:template match="t4htlink[ not(@name)
+ and
+ not(starts-with(@href, '#'))
+]" >
+ <text:a>
+ <xsl:attribute name="xlink:type">
+ <xsl:text>simple</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="xlink:href">
+ <xsl:value-of select="@href"/>
+ </xsl:attribute>
+ <xsl:apply-templates select="*|text()|comment()" />
+ </text:a>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+</set>
+<xslt name="." xml="." xsl="t4ht-link" />
+
+ </script>
+ <script element="text:bibliography-mark" >
+ <set name="bib-mark" >
+ <![CDATA[
+ <xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
+ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
+ xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
+ xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
+ xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
+ xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
+ xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
+ xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
+ xmlns:math="http://www.w3.org/1998/Math/MathML"
+ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
+ xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
+ xmlns:ooo="http://openoffice.org/2004/office"
+ xmlns:ooow="http://openoffice.org/2004/writer"
+ xmlns:oooc="http://openoffice.org/2004/calc"
+ xmlns:dom="http://www.w3.org/2001/xml-events"
+ xmlns:xforms="http://www.w3.org/2002/xforms"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ >
+ <xsl:output omit-xml-declaration = "yes" />
+
+ <xsl:template match="text:bibliography-mark" >
+ <xsl:copy>
+ <xsl:attribute name="text:identifier">
+ <xsl:value-of select="normalize-space(.)" />
+ </xsl:attribute>
+ <xsl:apply-templates select="@*" />
+ </xsl:copy>
+ <text:span>
+ <xsl:attribute name="text:style-name">
+ <xsl:text>reference-ref</xsl:text>
+ </xsl:attribute>
+ <text:reference-ref>
+ <xsl:attribute name="text:ref-name">
+ <xsl:value-of
+ select="text:span/text:reference-ref/@text:ref-name"/>
+ </xsl:attribute>
+ <xsl:attribute name="text:reference-format">
+ <xsl:text>text</xsl:text>
+ </xsl:attribute>
+ <xsl:text> </xsl:text>
+ </text:reference-ref>
+ </text:span>
+</xsl:template>
+
+ <xsl:template match="*|@*|text()|comment()" >
+ <xsl:copy>
+ <xsl:apply-templates select="*|@*|text()|comment()" />
+ </xsl:copy>
+ </xsl:template>
+ </xsl:stylesheet>
+]]>
+
+</set>
+<xslt name="." xml="." xsl="bib-mark" />
+
+ </script>
<script element="table:table" >
<dom name="." xml="." method="table" class="tex4ht.OoUtilities" />
diff --git a/Master/texmf-dist/tex4ht/xtpipes/xhtml.4xt b/Master/texmf-dist/tex4ht/xtpipes/xhtml.4xt
index c4c53bb8467..bf81aa7d0eb 100755
--- a/Master/texmf-dist/tex4ht/xtpipes/xhtml.4xt
+++ b/Master/texmf-dist/tex4ht/xtpipes/xhtml.4xt
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
-<xtpipes preamble="yes" signature="xhtml.4xt (2007-12-01-14:50)">
+<xtpipes preamble="yes" signature="xhtml.4xt (2008-06-28-21:47)">
<sax content-handler="xtpipes.util.ScriptsManager"
lexical-handler="xtpipes.util.ScriptsManagerLH" >
<script element="table::tabular" >
diff --git a/Master/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd b/Master/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd
index 483e38f8b79..6a4075ee25c 100755
--- a/Master/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd
+++ b/Master/texmf-dist/tex4ht/xtpipes/xtpipes-map.dtd
@@ -1,4 +1,4 @@
-<!-- xtpipes-map.dtd (2008-01-26-00:38) -->
+<!-- xtpipes-map.dtd (2008-03-20-16:23) -->
<!ELEMENT xtpipes-map (when | processing-instruction
| select
| command-line)* >