1.2 Text
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xtpipes SYSTEM "xtpipes.dtd" >
<!-- oo-text.4xt (2014-05-24-11:53), generated from tex4ht-oo-xtpipes.tex
Copyright (C) 2009-2013 TeX Users Group
Copyright (C) 2006-2009 Eitan M. Gurari
<.TeX4ht copyright.> -->
<xtpipes preamble="yes" signature="oo-text.4xt (2014-05-24-11:53)">
<sax content-handler="xtpipes.util.ScriptsManager,tex4ht.OoFilter"
lexical-handler="xtpipes.util.ScriptsManagerLH" >
<script element="t4htlink" >
<.cross references.>
</script>
<script element="text:bibliography-mark" >
<.bib mark.>
</script>
<script element="table:table" >
<.normalizing text tables.>
</script>
<script element="text:p" >
<.clean paragraphs.>
</script>
<script element="text:h" >
<.spaces for headers.>
</script>
</sax>
</xtpipes> -_-_-
1.2.1 Cross References
<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: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>
-_-_-
- External
<text:a xlink:type="simple"
xlink:href="http:....">...</text:a>
- internal http://www.linuxjournal.com/article/8112
<text:reference-mark-start text:name="xx"/>
is
<text:reference-mark-end text:name="xx"/>
<text:reference-ref text:reference-format="direction" text:ref-name="xx">
above
</text:reference-ref>