Hi Animesh,
Using Xselerator it works just fine, I only ask myself why do you have
<xsl:copy>
<xsl:apply-templates select="*|text()|@*"/>
</xsl:copy>
inside the template?
My xslt is as follows:
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:template match="/">
<table width="300" border="1" cellpadding="1" cellspacing="5">
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</xsl:template>
</xsl:transform>
And the output is:
<table width="300" border="1" cellpadding="1" cellspacing="5">
<tbody>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
Which is what you wanted, right?
Cheers,
<prs/>
-----Original Message-----
From: Animesh Sharma [mailto:asharma(_at_)in(_dot_)firstrain(_dot_)com]
Sent: Friday, April 30, 2004 3:05 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Inserting White Space ( ) through XSL.
hi,
I'm trying to insert white space or using following XSL.
<xsl:template
match="//body/namespace/form/snip/csf/div/center/p[position()=1]">
<xsl:copy><xsl:apply-templates select="*|text()|@*"/></xsl:copy> <table
width="300" border="1" cellpadding="1" cellspacing="5"> <tbody> <tr>
<td> </td> <td> </td> <td> </td> </tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</xsl:template>
As can be seen, whole purpose of writing this XSL is to create Empty table
where borderline(of cell) is visible. But no matter whether I use
<xsl:text></xsl:text> or <td> </td>. I'm not getting Empty Table.
No Empty cell is visible inside the table. Only outer boundary of Table is
visible.
Thanks and regards,
Animesh
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--