On 01/07/2010 13:01, Karl Funk wrote:
Hi,
Firstly I would like to do this as an xpath expression, if this is an
inappropriate question for this forum then I apologise, but would like to
see an XSL equivalent also.
xpath is on topic for the list, although it's best to say whether you
want xpath 1 or 2 as it'll make a lot of difference here (so no code
suggestions in this reply).
Basically you need to find the column number from the heading, and then
extract all the entries in that column. That's easier to write (and
probably a lot more efficient) if you can store the column number in a
variable before looking up the, that requires something that can bind
values to variables, so xslt or xpath2. Also of course if you are doing
this in xslt you could define a key and that may speed up access
greatly. if you are doing it in pure xpath you rely more on your xpath
engine to optimize, especially if using xslt 1, in which case you might
hope it factors out the expression to calculate the column number.
(you could probably have made the example a bit smaller, especially as
it came out double spaced)
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--