Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-41

Element TITLE passed on the tranformation from sdocbook to document v11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux 2.4.18 i686
      java version "1.4.1_01"

      Description

      Given a sdocbook format with an image the title element on the figure context is copied across. So it produce an invalid HTML code.

      I found the part that creates this problem:

            <xsl:template match="figure">
                  <table>
                        <tr>
                              <td>
                                <xsl:value-of select="title"/>
                              </td>
                        </tr>
                        <xsl:apply-templates />
                  </table>
            </xsl:template>

      But I do not know of a way to ignore just the title element and select everything else.

      This patch would fix it, but I am not 100% sure if this is how you wanted to do it.


      ===================================================================
      RCS file: /home/cvspublic/xml-forrest/src/resources/stylesheets/docbook2document.xsl,v
      retrieving revision 1.9
      diff -u -r1.9 docbook2document.xsl
      --- docbook2document.xsl 1 Jun 2003 09:35:13 -0000 1.9
      +++ docbook2document.xsl 6 Jun 2003 12:57:27 -0000
      @@ -446,7 +446,13 @@
                                     <xsl:value-of select="title"/>
                               </td>
                         </tr>
      - <xsl:apply-templates/>
      + <xsl:apply-templates select="blockquote"/>
      + <xsl:apply-templates select="informaltable"/>
      + <xsl:apply-templates select="link"/>
      + <xsl:apply-templates select="literallayout"/>
      + <xsl:apply-templates select="mediaobject"/>
      + <xsl:apply-templates select="programlisting"/>
      + <xsl:apply-templates select="ulink"/>
                   </table>
             </xsl:template>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cheche Juan Jose Pablos
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: