1.2 Text

<..oo-text.4xt..>
 <?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

<..cross references..>
 <set name="t4ht-link" >
    <.open oo xslt script.>
     <.handle t4htlink elements.>
    <.close xslt script.>
 </set>
 <xslt name="." xml="." xsl="t4ht-link" />
-_-_-

<..bib mark..>
 <set name="bib-mark" >
    <.open oo xslt script.>
     <.handle bib mark elements.>
    <.close xslt script.>
 </set>
 <xslt name="." xml="." xsl="bib-mark" />
-_-_-

<..handle t4htlink elements..>
 <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>
-_-_-

<..handle t4htlink elements..>+
 <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>
-_-_-

<..handle t4htlink elements..>+
 <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>
-_-_-

<..handle bib mark elements..>
 <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>
-_-_-