Re: [xsl] How count the Table cell (Cals Table) using XSL

Subject: Re: [xsl] How count the Table cell (Cals Table) using XSL
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Tue, 27 Jun 2006 13:13:16 +0530
Hi Byomkesh,
 I am not getting the error you posted.

XML is (I had to correct a well formdness error):

<table border="0" cellspacing="0" cellpadding="1" width="90%">
<thead>
<tr>
<th valign="top" colspan="3"><b>Table 1.1 802.11b Channels</b></th>
</tr>
<tr>
<th>Channel Number</th>
<th>Center Frequency (in GHz)</th>
<th>USA</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2.412</td>
<td>&#x2713;</td>
</tr>
</tbody>
</table>

With the stylesheet I posted, I am getting output:

java net.sf.saxon.Transform bk.xml bk.xsl
<?xml version="1.0" encoding="UTF-8"?>
<table>
  <table.html frame="void" width="100%" rules="groups" align="left"/>
  <colgroup>
     <col width="7.14%"/>
     <col width="59.52%"/>
     <col width="33.33%"/>
  </colgroup>
  <thead>
     <tr>
        <th valign="top" colspan="3">
           <b>Table 1.1 802.11b Channels</b>
        </th>
     </tr>
     <tr>
        <th>Channel Number</th>
        <th>Center Frequency (in GHz)</th>
        <th>USA</th>
     </tr>
  </thead>
  <tbody>
     <tr>
        <td>1</td>
        <td>2.412</td>
        <td>NB#C4</td>
     </tr>
  </tbody>
</table>

I am using Saxon basic version. Are you using Saxon Schema Aware version?

Regards,
Mukul

On 6/27/06, Byomkesh <bkesh@xxxxxxxxxxxxxxx> wrote:
Hi Mukul,

Thanks for your help. But its showing validation Error
<!---
Validation error
 FORG0001: Cannot convert string "" to a double
Transformation failed: Run-time errors were reported

-->

I have using Saxon 8.7.3j. I did not understand this error. Please Sorry
again i am disturb you.

Now what can i do?


Thanks


Byomkesh

Current Thread