Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.6
    • Component/s: Other
    • Labels:
      None
    • Environment:
      all

      Description

      the <figure> tag in sDocBook produces wrong HTML
      see discussion on user-list
        sDocBook: figure-XSL broken


        Activity

        Hide
        josch Johannes Schaefer added a comment -
        proposed solution, see below.
        (gives double table and hence double border, though)

        in
          FORREST_HOME\context\resources\stylesheets\docbook2document.xsl
        modify "figure" like this:
              <xsl:template match="figure">
                    <table>
                          <tr>
                                <td>
                                      <xsl:value-of select="title"/>
                                </td>
                          </tr>
         * <tr>
         * <td>
                          <xsl:apply-templates select="*[not(self::title)]"/>
         * </td>
         * </tr>
                    </table>
              </xsl:template>
        Show
        josch Johannes Schaefer added a comment - proposed solution, see below. (gives double table and hence double border, though) in   FORREST_HOME\context\resources\stylesheets\docbook2document.xsl modify "figure" like this:       <xsl:template match="figure">             <table>                   <tr>                         <td>                               <xsl:value-of select="title"/>                         </td>                   </tr>  * <tr>  * <td>                   <xsl:apply-templates select="*[not(self::title)]"/>  * </td>  * </tr>             </table>       </xsl:template>
        Hide
        josch Johannes Schaefer added a comment -
        to get rid of the additional border modify the "imagedata" entry
        as follows (don't know what happens to graphic)
        (it works but is not the most beautiful version when using credits ;-)

        <xsl:template match="graphic|imagedata">
        * <!-- <table>
        * <tr>
        * <td> -->
                                <img alt="{@srccredit}" src="{@fileref}"/>
        * <!-- </td>
        * </tr> -->
                    <xsl:if test="@srccredit">
        *<!-- <tr>
        * <td> -->
                                      <ul>
                                            <li>
                                                  <xsl:value-of
        select="@srccredit"/>
                                            </li>
        * <!-- </ul>
        * </td> -->
                          </tr>
                    </xsl:if>
        * <!--</table>-->
              </xsl:template>


        (Modified lines are marked with an asterisk *)
        Show
        josch Johannes Schaefer added a comment - to get rid of the additional border modify the "imagedata" entry as follows (don't know what happens to graphic) (it works but is not the most beautiful version when using credits ;-) <xsl:template match="graphic|imagedata"> * <!-- <table> * <tr> * <td> -->                         <img alt="{@srccredit}" src="{@fileref}"/> * <!-- </td> * </tr> -->             <xsl:if test="@srccredit"> *<!-- <tr> * <td> -->                               <ul>                                     <li>                                           <xsl:value-of select="@srccredit"/>                                     </li> * <!-- </ul> * </td> -->                   </tr>             </xsl:if> * <!--</table>-->       </xsl:template> (Modified lines are marked with an asterisk *)
        Hide
        brondsem Dave Brondsema added a comment -
        Fixed in SVN, thanks!
        Show
        brondsem Dave Brondsema added a comment - Fixed in SVN, thanks!

          People

          • Assignee:
            Unassigned
            Reporter:
            josch Johannes Schaefer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development