Subject: Re: assigned variable value is changing
From: "vasu chakkera" <vasucv@xxxxxxxxx>
Date: Thu, 13 Aug 2009 10:56:14 +0100 (GMT Daylight Time)
|
>But I have included another Condition where colspan not present. But seems
this condition is not Working and output is still NaN.
What is that condition???
-------Original Message-------
From: Ganesh Babu N
Date: 8/12/2009 2:17:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: assigned variable value is changing
Dear Vasu,
The following is my problem:
-----------------------------------------
The problem is there in the column number. I am taking the count of
<entry> tags and reducing by 1 in each row.
In the 2nd row 2nd <entry> I have tested for the presence of colspan
And increased the column number from 1 to 2. This condition is false
>From 3rd row. So I am getting NaN.
>From 3rd row onwards I am not getting column numbers. Please let me
Know how to get column number from 3rd row.
Regards,
Ganesh
--------------------------------------------------
On Tue, Aug 11, 2009 at 1:20 PM, vasu chakkera<vasucv@xxxxxxxxx> wrote:
>
>
>
>>
>> The problem is there in the column number. I am taking the count of
>> <entry> tags and reducing by 1 in each row.
>
> Is Dthis your problem???
>
> What condition is not working??? And where do u suspect a NAN??
>
>
>
> -------Original Message-------
>
> From: Ganesh Babu N
> Date: 8/11/2009 6:41:29 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: assigned variable value is changing
>
> Can Any body help me on this. I am struck here.
>
> Thanks and Regards,
> Ganesh
>
>
> On Wed, Aug 5, 2009 at 2:12 PM, Ganesh Babu N<nbabuganesh@xxxxxxxxx>
wrote:
>> Hai I will try to explain one by one.
>>
>> 1. First row in the input:
>>
>> <row>
>> <entry namest="c1" nameend="c3" align="left" valign="top">Table 1
>> Title</entry>
>> </row>
>>
>> first cell in the output:
>> <cell Name="0:0" RowSpan="1" ColumnSpan="3">Table 1 Title</cell>
>>
>> In the above in @Name, 0:0. Represents first column and first row.
>> Because of the colspan there won't be any cells/entry in this row.
>>
>> 2. 2nd row in the input:
>>
>> <row>
>> <entry namest="c1" nameend="c2" align="left" valign="top">Table 1 TH
>> C1 R1 and TH C2 R1 merged</entry>
>> <entry align="left" valign="top">Table 1 TH C3 R1</entry>
>> </row>
>>
>> cells corresponding to 2nd row in the output:
>>
>> <cell Name="0:1" RowSpan="1" ColumnSpan="2">Table 1 TH C1 R1 and TH C2
>> R1 merged</cell>
>> <cell Name="2:1" RowSpan="1" ColumnSpan="1">Table 1 TH C3 R1</cell>
>>
>> first cell is having @Name value as 0:1 means first column and 2nd row
>> 2nd cell is having @Name value as 2:1 means 3rd column and 2nd row.
>> Because of the colspan the 2nd column is clubbed with the first one.
>>
>> 3. 3rd row in the input:
>>
>> <row>
>> <entry align="left" valign="top">Table 1 TH C1 R2</entry>
>> <entry align="left" valign="top">Table 1 TH C2 R2</entry>
>> <entry align="left" valign="top">Table 1 TH C3 R2</entry>
>> </row>
>>
>> cells corresponding to 3rd row in the output:
>>
>> <cell Name="0:2" RowSpan="1" ColumnSpan="1">Table 1 TH C1 R2</cell>
>> <cell Name="1:2" RowSpan="1" ColumnSpan="1">Table 1 TH C2 R2</cell>
>> <cell Name="2:2" RowSpan="1" ColumnSpan="1">Table 1 TH C3 R2</cell>
>>
>> first cell is having @Name value as 0:2 means first column third row
>> 2nd cell is having @Name value as 1:2 means 2nd column third row
>> 3rd cell is having @Name value as 2:2 means 3rd column third row
>>
>> The problem is there in the column number. I am taking the count of
>> <entry> tags and reducing by 1 in each row.
>>
>> in the 2nd row 2nd <entry> I have tested for the presence of colspan
>> and increased the column number from 1 to 2. This condition is false
>> from 3rd row. So I am getting NaN. But I have included another
>> condition where colspan not present. But seems this condition is not
>> working and output is still NaN.
>>
>> From 3rd row onwards I am not getting column numbers. Please let me
>> know how to get column number from 3rd row.
>>
>> Regards,
>> Ganesh
>>
>>
>>
>> On Mon, Aug 3, 2009 at 9:06 PM, Martin Honnen<Martin.Honnen@xxxxxx>
wrote:
>
>>> Ganesh Babu N wrote:
>>>>
>>>> Why the 2nd test is not working. Why the first test only working. How
>>>> to get correct number from 4th cell instead of NaN.
>>>
>>> I am afraid I have so far not understood what determines those numbers
so
> I
>>> can't help with expressing that with XSLT code.
>>>
>>>
>>> --
>>>
>>> Martin Honnen
>>> http://msmvps.com/blogs/martin_honnen/
|