forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject Re: [BUG] Docbook table header is shifted one column.
Date Thu, 31 Jul 2003 16:19:21 GMT
Ringo,
Hum... I overlooked this issue.  I am sorry, I applied you patch, but 
still not working, you missed the <tr>:

This is what I get:

<p>Some free text pointing to a table:</p>
-
<table>
-
<th>Column</th>
<th>ColumnB</th>
-
<tr>
<td>1</td>
<td>1</td>
</tr>
-
<tr>
<td>2</td>
<td>4</td>
</tr>
-
<tr>
<td>3</td>
<td>9</td>
</tr>
</table>


I applied a modified patch, and this time I test that it works, so you 
should see the first row diferent.

Cheers,
Cheche

DeSmet_Ringo@emc.com wrote:
> Juan,
> 
> 
>>A <tr> was missing on the importer XSL, I just added, so that should 
>>work for you.
> 
> 
> Thanks for the quick response. I did retrieve the changed XSL file, but it
> didn't solve my problem. I have been digging deeper and I found the problem.
> When applying your fix, it generated the following XML:
> 
> <tr>
> <th><td>ColumnA</td><td>ColumnB</td></th>
> </tr>
> 
> According to the document DTD, it should read:
> 
> <tr>
> <th>ColumnA</th><th>ColumnB</th>
> </tr>
> 
> The attached patch file should fix the problem! Please review and apply in
> CVS if OK.
> 
> Ringo
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: docbook2document.xsl
> ===================================================================
> RCS file: /home/cvspublic/xml-forrest/src/resources/stylesheets/docbook2document.xsl,v
> retrieving revision 1.14
> diff -u -r1.14 docbook2document.xsl
> --- docbook2document.xsl	31 Jul 2003 11:45:44 -0000	1.14
> +++ docbook2document.xsl	31 Jul 2003 14:13:04 -0000
> @@ -524,14 +524,7 @@
>              <xsl:apply-templates select="thead|tbody|tfoot"/>
>        </xsl:template>
>        <xsl:template match="thead">
> -            <tr>
> -            <xsl:apply-templates select="row" mode="head"/>
> -            </tr>
> -      </xsl:template>
> -      <xsl:template match="row" mode="head">
> -            <th>
> -                  <xsl:apply-templates/>
> -            </th>
> +            <xsl:apply-templates mode="head"/>
>        </xsl:template>
>        <xsl:template match="row">
>              <tr>
> @@ -540,6 +533,11 @@
>        </xsl:template>
>        <xsl:template match="tbody|tfoot">
>              <xsl:apply-templates/>
> +      </xsl:template>
> +      <xsl:template match="entry" mode="head">
> +            <th>
> +                  <xsl:apply-templates/>
> +            </th>
>        </xsl:template>
>        <xsl:template match="entry">
>              <td>



Mime
View raw message