[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Getting html table cell values based on the table

Subject: Re: Getting html table cell values based on the table heading
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 01 Jul 2010 13:11:54 +0100
Re:  Getting html table cell values based on the table
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. ________________________________________________________________________


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.