![]() |
selecting all the columns in a table based on the column headersvalue
<table>
<thead> <tr> <td>Part #</td> <td>Description</td. <td>Price</td> </tr> </thead> <tr> <td>...</td> <td>...</td> <td>...</td> </tr> </table> Would it be possible to, using a single query, load every x'th <td> in every <tr> after <thead> based on the position of the 'Price' <td> in <thead>? |
Re: selecting all the columns in a table based on the column headersvalue
yawnmoth wrote:
> <table> > <thead> > <tr> > <td>Part #</td> > <td>Description</td. > <td>Price</td> > </tr> > </thead> > <tr> > <td>...</td> > <td>...</td> > <td>...</td> > </tr> > </table> > > Would it be possible to, using a single query, load every x'th <td> in > every <tr> after <thead> based on the position of the 'Price' <td> in > <thead>? /table/tr/td[position() = count(../../thead/tr[1]/td[. = 'Price']/preceding-sibling::td) + 1] -- Martin Honnen http://msmvps.com/blogs/martin_honnen/ |
| All times are GMT. The time now is 12:41 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.