it is giving you exactly what you wanted.
you asked for contents of row.so you get everything under row.
ask for something specific like table/row7[4]/amount"
From: Arthur Maloney <ArthurM(_at_)seipas(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Return one element only
Date: Sat, 18 Feb 2006 09:29:15 +0000
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>
--~--
_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters
--~------------------------------------------------------------------
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>
--~--