Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Format table/cell >Thread Next - Re: Format table/cell Re: Format table/cellTo: NULL Date: 3/6/2009 1:13:00 PM Taras wrote:
> There is probably a simple answer to this, but I haven't been able to figure
> it out - hope someone can help.
> I have an .xslt file with this bit of "code". The output is a two column
> table with multiple rows and is coming out correctly as an .rft/.doc file.
> What I can't get is to have the grid lines displayed
> <xsl:template match="CLRow">
> <div
> style="margin-left:100px;margin-top:100px;margin-bottom:100px;border:solid">
> <table border="10" cellpadding="10" frame="box">
> <xsl:text>\trowd\cellx3000\cellx9000\intbl\ql </xsl:text>
> <xsl:value-of select="CLTitle"/>
> <xsl:text> \cell </xsl:text>
> <xsl:text>\ql </xsl:text>
> <xsl:value-of select="CLData" />
> <xsl:text>\par</xsl:text>
> <xsl:text>\cell </xsl:text>
> <xsl:text>\ql </xsl:text>
> <xsl:text>\pard\intbl\row</xsl:text>
> </table>
> </div>
> </xsl:template>
>
> I'm quite new to xml/html, etc. Can someone give me some guidance? (This
> is not for a class assignment.)
I am not sure what you want to achieve. Your code mixes HTML and RTF (I
think), what is that supposed to do?
If you want to output a HTML table then you need e.g.
<table>
<tbody>
<tr>
<td>cell content</td>
<td>cell content</td>
</tr>
</tbody>
</table>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
