xsl-list
[Top] [All Lists]

Return one element only

2006-02-18 02:29:15
Hello xsl-list,

I have a repeating pattern of rows:
<table>
 <row7>
    <amount>3130.6800</amount>
    <incomeExpenditureType>Total 1</incomeExpenditureType>
 </row7>
 <row7>
    <amount>1200.0000</amount>
    <incomeExpenditureType>Total 2</incomeExpenditureType>
 </row7>
 <row7>
    <amount>4330.6800</amount>
    <incomeExpenditureType>Grand Total</incomeExpenditureType>
 </row7>
 <row7>
    <amount>1000.0000</amount>
    <incomeExpenditureType>Wages/Salary (PCM)</incomeExpenditureType>
 </row7>
 <row7>
    <amount>500.0000</amount>
    <incomeExpenditureType>Income from self employment</incomeExpenditureType>
 </row7>
 ...
</table>

IN XSLT using select="table/row7[4]"

gives me 1000.0000Wages/Salary (PCM)

What do I do? So the select only gives me 1000.0000

-- 
Best regards,
 Arthur                          mailto:ArthurM(_at_)seipas(_dot_)com


--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>