forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [issues] Closed: (FOR-41) Element TITLE passed on the tranformation from sdocbook to document v11
Date Thu, 01 Jan 1970 00:00:00 GMT

   The following issue has been closed.

View the issue:

Here is an overview of the issue:
        Key: FOR-41
    Summary: Element TITLE passed on the tranformation from sdocbook  to document v11
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Forrest
  Component: None
    Fix For: 0.5

   Reporter: Juan Jose Pablos

    Created: Fri, 6 Jun 2003 2:58 PM
    Updated: Wed, 30 Jul 2003 2:42 PM
Environment: Linux 2.4.18 i686
java version "1.4.1_01"

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">
                          <xsl:value-of select="title"/>
                  <xsl:apply-templates />

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"/>
-                  <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"/>

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message