VirtualBox

Changeset 99159 in vbox for trunk


Ignore:
Timestamp:
Mar 23, 2023 11:25:01 PM (19 months ago)
Author:
vboxsync
Message:

manual: More work on the refentry to dita converter. bugref:10302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/docbook-refentry-to-manual-dita.xsl

    r99157 r99159  
    135135  <xsl:element name="sectiondiv">
    136136    <xsl:attribute name="rev">refsect2</xsl:attribute>
    137     <xsl:attribute name="outputclass">refsect2</xsl:attribute>
     137    <xsl:attribute name="outputclass">refsect2</xsl:attribute> <!-- how to make xhtml pass these thru... -->
    138138    <xsl:if test="@id">
    139139      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
     
    149149  <xsl:element name="b">
    150150    <xsl:attribute name="rev">refsect2/title</xsl:attribute>
    151     <xsl:attribute name="outputclass">refsect2title</xsl:attribute>
     151    <xsl:attribute name="outputclass">refsect2title</xsl:attribute> <!-- how to make xhtml pass these thru... -->
    152152    <xsl:apply-templates />
    153153  </xsl:element>
     
    369369    </xsl:choose>
    370370
    371     <xsl:if test="@rep='repeat'">
    372       <xsl:element name="repsep">
     371    <xsl:apply-templates />
     372
     373    <xsl:if test="@rep = 'repeat'">
     374      <!-- repsep can only be placed at the start of a groupseq/whatever and
     375           the documenation and examples of the element is very sparse.  The
     376           PDF output plugin will place the '...' where it finds it and do
     377           nothing if it's empty.  The XHTML output plugin ignores it, it seems. -->
     378      <xsl:text> </xsl:text>
     379      <xsl:element name="groupseq">
     380        <xsl:attribute name="importance">optional</xsl:attribute>
    373381        <xsl:attribute name="rev">arg[<xsl:value-of select="@choice"/>,repeat]</xsl:attribute>
    374         <xsl:text>...</xsl:text>
     382        <xsl:attribute name="outputclass">repeatarg</xsl:attribute> <!-- how to make xhtml pass these thru... -->
     383        <xsl:element name="repsep">
     384          <xsl:attribute name="rev">arg[<xsl:value-of select="@choice"/>,repeat]</xsl:attribute>
     385          <xsl:text>...</xsl:text>
     386        </xsl:element>
    375387      </xsl:element>
    376388    </xsl:if>
    377 
    378     <xsl:apply-templates />
    379389
    380390  </xsl:element>
     
    448458    <xsl:attribute name="importance">required</xsl:attribute>
    449459
     460    <!-- This doesn't really work. Sigh. -->
    450461    <xsl:if test="@rep = 'repeat'">
    451462      <xsl:element name="repsep">
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