VirtualBox

Ignore:
Timestamp:
Jun 18, 2015 5:44:54 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101154
Message:

doc/manual: fix SDK reference to be valid docbook XML, needed adjustments in the generator (which produced creative stuff which was severely violating the DTD, e.g. custom attributes which could be easily done properly) and a LOT of manual editing. Content of the manual is essentially the same, the biggest issues were <para> sloppiness and the use of <xref> where <link> is the only solution. Also made the line lengths again as uniform as possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook2latex.xsl

    r56483 r56532  
    621621  <xsl:template match="xref">
    622622    <xsl:choose>
    623       <xsl:when test="@xreflabel">
    624         <xsl:value-of select="concat('\hyperref[', @linkend, ']{\mbox{', @xreflabel, '}}')" />
    625       </xsl:when>
    626       <xsl:when test="@apiref='yes'">
     623      <xsl:when test="@endterm">
     624        <xsl:value-of select="concat('\hyperref[', @linkend, ']{\mbox{', @endterm, '}}')" />
     625      </xsl:when>
     626      <xsl:otherwise>
     627        <xsl:value-of select="concat($g_nlsChapter, ' \ref{', @linkend, '}, \textit{\nameref{', @linkend, '}}, ', $g_nlsPage, ' \pageref{', @linkend, '}')" />
     628      </xsl:otherwise>
     629    </xsl:choose>
     630  </xsl:template>
     631
     632  <xsl:template match="link">
     633    <xsl:choose>
     634      <xsl:when test="@endterm">
     635        <xsl:value-of select="concat('\hyperref[', @linkend, ']{\mbox{', @endterm, '}}')" />
     636      </xsl:when>
     637      <xsl:when test="./text()">
    627638        <xsl:value-of select="concat('\hyperref[', @linkend, ']{\mbox{')" />
    628         <xsl:apply-templates />
     639        <xsl:apply-templates select="./text()"/>
    629640        <xsl:value-of select="'}}'" />
    630641      </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette