Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6
-
None
-
None
-
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>
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>