|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Finding a name and the resultingMartin Probst martin at x-hive.comThu Aug 17 10:01:14 PDT 2006
Hi,
> <td align="left" colspan="1" rowspan="1" valign="TOP" width="200">
> <b>Bob Stevens:
> </b>
> </td>
> <td align="center" colspan="1" rowspan="1" valign="TOP" width="75">
> <b/>
> <p class="purple">
> <b>
>
> <b>SCMM9</b>
> </b>
> </p>
> <b>
> </b>
> </td>
>
> Other pages have varying numbers of columns but this is the
> simplest page with a single name, followed by a letter/number
> combo. Some early documents are just a number.
So the idea is that you have an HTML table where the first <td/>
contains a name, and all following <td/>s contain numbers that are
associated with the name?
What about:
for $row in $somewhere/table/tr
let $name := $row/td[1]/string()
let $numbers := $row/td[position() > 1]/string()
return <user><name>{$name}</user><numbers>{ string-join($numbers,
',') }</numbers></user>
I don't quite understand the thing with just a single column, to
whose name is it associated then?
HTH,
Martin
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






